mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
add e2e test
This commit is contained in:
@@ -52,6 +52,17 @@ root[A root with a long text that wraps to keep the node size in check]
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('a root with wrapping text and long words that exceed width', () => {
|
||||||
|
imgSnapshotTest(
|
||||||
|
`mindmap
|
||||||
|
root[A few smaller words but then averylongsetofcharacterswithoutwhitespacetoseparate that we expect to wrapontonextlinesandnotexceedwidthparameters]
|
||||||
|
`,
|
||||||
|
{},
|
||||||
|
undefined,
|
||||||
|
shouldHaveRoot
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
it('a root with an icon', () => {
|
it('a root with an icon', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`mindmap
|
`mindmap
|
||||||
|
Reference in New Issue
Block a user