fix(ci): restore Windows clippy and Mermaid preview tests (#7132)

Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-01 09:14:14 +08:00
1 джерело ba94abcb8b
коміт cd8f29ea63
2 files changed
+5

No files matched your search

+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);