Skip to content

Commit

Permalink
[#65872] add mermaid test
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Sep 20, 2024
1 parent 5258dce commit b33e50e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/myst-editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,21 @@ test.describe.parallel("With collaboration disabled", () => {
const clipboardContent = await page.evaluate(() => navigator.clipboard.readText());
expect(clipboardContent).toContain("<h1>");
});

test("Mermaid diagrams", async ({page}) => {
await clearEditor(page);
await insertChangesAndCheckOutput(
page,
{
from: 0,
insert: `\`\`\`mermaid
graph TD
A-->B
\`\`\``,
},
(html) => expect(html).toContain("<svg")
)
});
})

test.describe.parallel("With collaboration enabled", () => {
Expand Down

0 comments on commit b33e50e

Please sign in to comment.