fix: failing e2e for mindmaps

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-08-07 13:10:28 +05:30
parent b61780f735
commit b51b9d50c2

View File

@@ -105,126 +105,6 @@ root))bang((
); );
}); });
it('Bang and cloud shape with dagre layout', () => {
imgSnapshotTest(
`---
config:
layout: dagre
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with elk layout', () => {
imgSnapshotTest(
`---
config:
layout: elk
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with cose-bilkent layout', () => {
imgSnapshotTest(
`---
config:
layout: cose-bilkent
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with tidy-tree layout', () => {
imgSnapshotTest(
`---
config:
layout: tidy-tree
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('braches', () => { it('braches', () => {
imgSnapshotTest( imgSnapshotTest(
`mindmap `mindmap
@@ -279,12 +159,10 @@ root
}); });
it('square shape', () => { it('square shape', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap
root[ root[
The root The root
] ]`,
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot
@@ -292,12 +170,10 @@ mindmap
}); });
it('rounded rect shape', () => { it('rounded rect shape', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap
root(( root((
The root The root
)) ))`,
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot
@@ -305,12 +181,10 @@ mindmap
}); });
it('circle shape', () => { it('circle shape', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap
root( root(
The root The root
) )`,
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot
@@ -318,10 +192,8 @@ mindmap
}); });
it('default shape', () => { it('default shape', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap The root`,
The root
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot
@@ -329,12 +201,10 @@ mindmap
}); });
it('adding children', () => { it('adding children', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap
The root The root
child1 child1
child2 child2`,
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot
@@ -342,13 +212,11 @@ mindmap
}); });
it('adding grand children', () => { it('adding grand children', () => {
imgSnapshotTest( imgSnapshotTest(
` `mindmap
mindmap
The root The root
child1 child1
child2 child2
child3 child3`,
`,
{}, {},
undefined, undefined,
shouldHaveRoot shouldHaveRoot