дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
fix(ci): restore Windows clippy and Mermaid preview tests (#7132)
Цей коміт міститься в:
1 джерело
ba94abcb8b
коміт
cd8f29ea63
2 files changed
+5
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Заблокувати користувача