diff --git a/e2e/diagrams/sequence/should-render-comprehensive-self-reference-scenario-all-arrow-types-mixed-with-central-connections.mmd b/e2e/diagrams/sequence/should-render-comprehensive-self-reference-scenario-all-arrow-types-mixed-with-central-connections.mmd new file mode 100644 index 00000000000..b508d2d354a --- /dev/null +++ b/e2e/diagrams/sequence/should-render-comprehensive-self-reference-scenario-all-arrow-types-mixed-with-central-connections.mmd @@ -0,0 +1,37 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + + Note over Alice,Charlie: Normal arrows + Alice->>Alice: Normal solid + Bob-->>Bob: Normal dotted + Charlie->Charlie: Normal open + + Note over Alice,Charlie: Reverse arrows + Alice/|-Alice: Reverse solid top + Bob\|-Bob: Reverse solid bottom + + Note over Alice,Charlie: Bidirectional arrows + Charlie<<->>Charlie: Bidirectional solid + Alice<<-->>Alice: Bidirectional dotted + + Note over Alice,Charlie: Central connections + Bob->>()Bob: Central at destination + Charlie()->>Charlie: Central at source + Alice()->>()Alice: Dual central + + Note over Alice,Charlie: Reverse with central + Bob()/|-()Bob: Reverse with dual central + Charlie/|-()Charlie: Reverse with central at destination + + Note over Alice,Charlie: Bidirectional with central + Alice()<<->>()Alice: Bidirectional with dual central diff --git a/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-dual-no-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-dual-no-autonumber.mmd new file mode 100644 index 00000000000..e5602909d88 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-dual-no-autonumber.mmd @@ -0,0 +1,19 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice()/|-()Alice: Circles at both ends with solid top reverse + Bob()\|-()Bob: Circles at both ends with solid bottom reverse + Charlie()//-()Charlie: Circles at both ends with stick top reverse + Alice()\\-()Alice: Circles at both ends with stick bottom reverse + Bob()/|--()Bob: Circles at both ends with dotted solid top reverse + Charlie()\|--()Charlie: Circles at both ends with dotted solid bottom reverse + Alice()//--()Alice: Circles at both ends with dotted stick top reverse + Bob()\\--()Bob: Circles at both ends with dotted stick bottom reverse diff --git a/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-autonumber.mmd new file mode 100644 index 00000000000..860bc021a52 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-autonumber.mmd @@ -0,0 +1,20 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice()/|-Alice: Circle at source with solid top reverse + Bob()\|-Bob: Circle at source with solid bottom reverse + Charlie()//-Charlie: Circle at source with stick top reverse + Alice()\\-Alice: Circle at source with stick bottom reverse + Bob()/|--Bob: Circle at source with dotted solid top reverse + Charlie()\|--Charlie: Circle at source with dotted solid bottom reverse + Alice()//--Alice: Circle at source with dotted stick top reverse + Bob()\\--Bob: Circle at source with dotted stick bottom reverse diff --git a/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-no-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-no-autonumber.mmd new file mode 100644 index 00000000000..c242a392a92 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-ref-reverse-central-connection-reverse-no-autonumber.mmd @@ -0,0 +1,19 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice()/|-Alice: Circle at source with solid top reverse + Bob()\|-Bob: Circle at source with solid bottom reverse + Charlie()//-Charlie: Circle at source with stick top reverse + Alice()\\-Alice: Circle at source with stick bottom reverse + Bob()/|--Bob: Circle at source with dotted solid top reverse + Charlie()\|--Charlie: Circle at source with dotted solid bottom reverse + Alice()//--Alice: Circle at source with dotted stick top reverse + Bob()\\--Bob: Circle at source with dotted stick bottom reverse diff --git a/e2e/diagrams/sequence/should-render-self-reference-mixed-with-regular-messages-central-connections-and-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-mixed-with-regular-messages-central-connections-and-autonumber.mmd new file mode 100644 index 00000000000..41a4624766e --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-mixed-with-regular-messages-central-connections-and-autonumber.mmd @@ -0,0 +1,22 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + + Alice->>Bob: Regular message + Bob->>Bob: Self-reference solid + Bob-->>Charlie: Regular dotted + Charlie()->>()Charlie: Self-ref dual central + Charlie->>Alice: Regular back + Alice<<->>Alice: Self-ref bidirectional + Alice()->>Bob: Regular with central + Bob()/|-()Bob: Self-ref reverse dual central + Bob-->>Alice: Regular dotted back diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-bidirectional-and-central-connections-with-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-bidirectional-and-central-connections-with-autonumber.mmd new file mode 100644 index 00000000000..c3322ad0419 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-bidirectional-and-central-connections-with-autonumber.mmd @@ -0,0 +1,16 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice()<<->>()Alice: Dual central with bidirectional solid + Bob()<<-->>()Bob: Dual central with bidirectional dotted + Charlie<<->>()Charlie: Central at end with bidirectional + Bob()<<->>Bob: Central at start with bidirectional diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-with-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-with-autonumber.mmd new file mode 100644 index 00000000000..8f285eb86dd --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-with-autonumber.mmd @@ -0,0 +1,17 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice()->>()Alice: Circles at both ends with solid arrow + Bob()-->>()Bob: Circles at both ends with dotted arrow + Charlie()->()Charlie: Circles at both ends with open arrow + Alice()--x()Alice: Circles at both ends with cross arrow + Bob()--)()Bob: Circles at both ends with close arrow diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-without-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-without-autonumber.mmd new file mode 100644 index 00000000000..23b9a2a60b7 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-dual-without-autonumber.mmd @@ -0,0 +1,16 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice()->>()Alice: Circles at both ends with solid arrow + Bob()-->>()Bob: Circles at both ends with dotted arrow + Charlie()->()Charlie: Circles at both ends with open arrow + Alice()--x()Alice: Circles at both ends with cross arrow + Bob()--)()Bob: Circles at both ends with close arrow diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-with-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-with-autonumber.mmd new file mode 100644 index 00000000000..d26847137a2 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-with-autonumber.mmd @@ -0,0 +1,17 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice()->>Alice: Circle at source with solid arrow + Bob()-->>Bob: Circle at source with dotted arrow + Charlie()->Charlie: Circle at source with open arrow + Alice()--xAlice: Circle at source with cross arrow + Bob()--)Bob: Circle at source with close arrow diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-without-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-without-autonumber.mmd new file mode 100644 index 00000000000..3e1f5644e23 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-reverse-without-autonumber.mmd @@ -0,0 +1,16 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice()->>Alice: Circle at source with solid arrow + Bob()-->>Bob: Circle at source with dotted arrow + Charlie()->Charlie: Circle at source with open arrow + Alice()--xAlice: Circle at source with cross arrow + Bob()--)Bob: Circle at source with close arrow diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-with-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-with-autonumber.mmd new file mode 100644 index 00000000000..f0ffad59b9b --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-with-autonumber.mmd @@ -0,0 +1,17 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice->>()Alice: Solid arrow with circle at destination + Bob-->>()Bob: Dotted arrow with circle at destination + Charlie->()Charlie: Open arrow with circle at destination + Alice--x()Alice: Cross arrow with circle at destination + Bob--)()Bob: Close arrow with circle at destination diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-without-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-without-autonumber.mmd new file mode 100644 index 00000000000..7d0d5bf80a6 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-central-connection-without-autonumber.mmd @@ -0,0 +1,16 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice->>()Alice: Solid arrow with circle at destination + Bob-->>()Bob: Dotted arrow with circle at destination + Charlie->()Charlie: Open arrow with circle at destination + Alice--x()Alice: Cross arrow with circle at destination + Bob--)()Bob: Close arrow with circle at destination diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection-with-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection-with-autonumber.mmd new file mode 100644 index 00000000000..bc2ab949948 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection-with-autonumber.mmd @@ -0,0 +1,20 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice/|-()Alice: Solid top reverse with circle at destination + Bob\|-()Bob: Solid bottom reverse with circle at destination + Charlie//-()Charlie: Stick top reverse with circle at destination + Alice\\-()Alice: Stick bottom reverse with circle at destination + Bob/|--()Bob: Dotted solid top reverse with circle at destination + Charlie\|--()Charlie: Dotted solid bottom reverse with circle at destination + Alice//--()Alice: Dotted stick top reverse with circle at destination + Bob\\--()Bob: Dotted stick bottom reverse with circle at destination diff --git a/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection.mmd b/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection.mmd new file mode 100644 index 00000000000..3e2ec5db211 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-reference-with-reverse-arrows-and-central-connection.mmd @@ -0,0 +1,19 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice/|-()Alice: Solid top reverse with circle at destination + Bob\|-()Bob: Solid bottom reverse with circle at destination + Charlie//-()Charlie: Stick top reverse with circle at destination + Alice\\-()Alice: Stick bottom reverse with circle at destination + Bob/|--()Bob: Dotted solid top reverse with circle at destination + Charlie\|--()Charlie: Dotted solid bottom reverse with circle at destination + Alice//--()Alice: Dotted stick top reverse with circle at destination + Bob\\--()Bob: Dotted stick bottom reverse with circle at destination diff --git a/e2e/diagrams/sequence/should-render-self-references-reverse-arrows-dual-central-connection-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-references-reverse-arrows-dual-central-connection-autonumber.mmd new file mode 100644 index 00000000000..286dab0f272 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-references-reverse-arrows-dual-central-connection-autonumber.mmd @@ -0,0 +1,20 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + autonumber + participant Alice + participant Bob + participant Charlie + Alice()/|-()Alice: Circles at both ends with solid top reverse + Bob()\|-()Bob: Circles at both ends with solid bottom reverse + Charlie()//-()Charlie: Circles at both ends with stick top reverse + Alice()\\-()Alice: Circles at both ends with stick bottom reverse + Bob()/|--()Bob: Circles at both ends with dotted solid top reverse + Charlie()\|--()Charlie: Circles at both ends with dotted solid bottom reverse + Alice()//--()Alice: Circles at both ends with dotted stick top reverse + Bob()\\--()Bob: Circles at both ends with dotted stick bottom reverse diff --git a/e2e/diagrams/sequence/should-render-self-references-with-bidirectional-central-connections-no-autonumber.mmd b/e2e/diagrams/sequence/should-render-self-references-with-bidirectional-central-connections-no-autonumber.mmd new file mode 100644 index 00000000000..a73a86ebb40 --- /dev/null +++ b/e2e/diagrams/sequence/should-render-self-references-with-bidirectional-central-connections-no-autonumber.mmd @@ -0,0 +1,15 @@ +--- +config: + sequence: + diagramMarginX: 50 + diagramMarginY: 10 +--- +%%{init: {'theme':'base'}}%% +sequenceDiagram + participant Alice + participant Bob + participant Charlie + Alice()<<->>()Alice: Dual central with bidirectional solid + Bob()<<-->>()Bob: Dual central with bidirectional dotted + Charlie<<->>()Alice: Central at end with bidirectional + Bob()<<->>Bob: Central at start with bidirectional diff --git a/e2e/rendering/mindmap/mindmap.spec.ts b/e2e/rendering/mindmap/mindmap.spec.ts index 7866b293c89..db78367297e 100644 --- a/e2e/rendering/mindmap/mindmap.spec.ts +++ b/e2e/rendering/mindmap/mindmap.spec.ts @@ -280,4 +280,31 @@ root }); }); /* The end */ + test('all shapes with mdi:fire icon', async ({ page }, testInfo) => { + await imgSnapshotTest( + page, + testInfo, + `mindmap + root((MindMap)) + ::icon(mdi:fire) + square[I am a square] + ::icon(mdi:fire) + rounded(I am a rounded square) + ::icon(mdi:fire) + circle((I am a circle)) + ::icon(mdi:fire) + bang))I am a bang(( + ::icon(mdi:fire) + cloud)I am a cloud( + ::icon(mdi:fire) + hex{{I am a hexagon}} + ::icon(mdi:fire) + I am the default shape + ::icon(mdi:fire) + `, + {}, + undefined, + shouldHaveRoot + ); + }); });