mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
feat(e2e): check ELK flowchart
This commit is contained in:
parent
a1b660cfcd
commit
751adf474f
27
e2e/note_types/mermaid.spec.ts
Normal file
27
e2e/note_types/mermaid.spec.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { test, expect, Page } from "@playwright/test";
|
||||||
|
import App from "../support/app";
|
||||||
|
|
||||||
|
test("renders ELK flowchart", async ({ page, context }) => {
|
||||||
|
const app = new App(page, context);
|
||||||
|
await app.goto();
|
||||||
|
await app.goToNoteInNewTab("Flowchart ELK on");
|
||||||
|
|
||||||
|
const svgData = app.currentNoteSplit.locator(".mermaid-render svg");
|
||||||
|
await expect(svgData).toMatchAriaSnapshot(`
|
||||||
|
- document:
|
||||||
|
- paragraph: A
|
||||||
|
- paragraph: B
|
||||||
|
- paragraph: C
|
||||||
|
- paragraph: Guarantee
|
||||||
|
- paragraph: User attributes
|
||||||
|
- paragraph: Master data
|
||||||
|
- paragraph: Exchange Rate
|
||||||
|
- paragraph: Profit Centers
|
||||||
|
- paragraph: Vendor Partners
|
||||||
|
- paragraph: Work Situation
|
||||||
|
- paragraph: Customer
|
||||||
|
- paragraph: Profit Centers
|
||||||
|
- paragraph: Guarantee
|
||||||
|
- text: Interfaces for B
|
||||||
|
`);
|
||||||
|
});
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user