Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai 540c34bd05 fix(ci): restore Windows clippy and Mermaid preview tests 2026-12-01 09:11:27 +08:00
2 змінених файлів з 5 додано та 0 видалено

No files matched your search

+1
Переглянути файл
@@ -103,6 +103,7 @@ fn convert(config: &mut LaunchConfig, to: &str) -> IdeResult<()> {
mod tests {
use super::*;
use std::collections::BTreeMap;
#[cfg(unix)]
use std::path::Path;
fn cmake_launch() -> LaunchConfig {
+4
Переглянути файл
@@ -610,6 +610,8 @@ test("keeps diagrams and their math labels when editing or switching Markdown ta
].join("\n\n");
await page.keyboard.insertText(source);
const preview = page.getByRole("document", { name: "Markdown preview" });
// Mermaid rendering is deferred while editing the source.
await preview.focus();
const diagram = preview.locator(".mermaid-output .pan-zoom-content > svg");
await expect(diagram.locator("foreignObject math")).toHaveCount(1);
const original = await diagram.elementHandle();
@@ -623,6 +625,7 @@ test("keeps diagrams and their math labels when editing or switching Markdown ta
await content.press("Meta+a");
await page.keyboard.insertText(source.replace("$$x^2$$", () => "$$z^3$$"));
await preview.focus();
await expect(diagram.locator("foreignObject math mi")).toHaveText("z");
const edited = await diagram.elementHandle();
expect(await diagram.evaluate((svg, old) => svg === old, original)).toBe(false);
@@ -673,6 +676,7 @@ test("Markdown preview aligns Mermaid diagrams to their container align attribut
);
const preview = page.getByRole("document", { name: "Markdown preview" });
await preview.focus();
const outputs = preview.locator("[data-mermaid-state='ok'] .mermaid-output");
await expect(outputs).toHaveCount(4);