From d841a3423fea26590c444269bf8c3b983b395501 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Thu, 2 Feb 2023 20:44:27 -0800 Subject: [PATCH] move erroring test to todo test --- e2etests/regression_test.go | 21 - .../dagre/board.exp.json | 606 ------------------ .../dagre/sketch.exp.svg | 62 -- .../elk/board.exp.json | 606 ------------------ .../elk/sketch.exp.svg | 62 -- e2etests/todo_test.go | 23 + 6 files changed, 23 insertions(+), 1357 deletions(-) delete mode 100644 e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/board.exp.json delete mode 100644 e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/sketch.exp.svg delete mode 100644 e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/board.exp.json delete mode 100644 e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/sketch.exp.svg diff --git a/e2etests/regression_test.go b/e2etests/regression_test.go index b96ad0b77..02d82f9b5 100644 --- a/e2etests/regression_test.go +++ b/e2etests/regression_test.go @@ -444,27 +444,6 @@ group 11: { } b -> c -`, - }, - { - name: "sequence_diagram_ambiguous_edge_group", - script: ` -Office chatter: { - shape: sequence_diagram - alice: Alice - bob: Bobby - awkward small talk: { - awkward small talk.ok - alice -> bob: uhm, hi - bob -> alice: oh, hello - icebreaker attempt: { - alice -> bob: what did you have for lunch? - } - unfortunate outcome: { - bob -> alice: that's personal - } - } -} `, }, } diff --git a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/board.exp.json b/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/board.exp.json deleted file mode 100644 index ae7c95227..000000000 --- a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/board.exp.json +++ /dev/null @@ -1,606 +0,0 @@ -{ - "name": "", - "fontFamily": "SourceSansPro", - "shapes": [ - { - "id": "Office chatter", - "type": "sequence_diagram", - "pos": { - "x": 0, - "y": 0 - }, - "width": 711, - "height": 1046, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#FFFFFF", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Office chatter", - "fontSize": 28, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 164, - "labelHeight": 41, - "labelPosition": "INSIDE_TOP_CENTER", - "zIndex": 0, - "level": 1 - }, - { - "id": "Office chatter.alice", - "type": "rectangle", - "pos": { - "x": 24, - "y": 110 - }, - "width": 150, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Alice", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 38, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.bob", - "type": "rectangle", - "pos": { - "x": 274, - "y": 110 - }, - "width": 150, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Bobby", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 48, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.awkward small talk", - "type": "rectangle", - "pos": { - "x": 512, - "y": 110 - }, - "width": 175, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "awkward small talk", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 135, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.awkward small talk.awkward small talk", - "type": "rectangle", - "pos": { - "x": 593, - "y": 290 - }, - "width": 12, - "height": 98, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#E3E9FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 135, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - }, - { - "id": "Office chatter.awkward small talk.awkward small talk.ok", - "type": "page", - "pos": { - "x": 568, - "y": 306 - }, - "width": 62, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#FFFFFF", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "ok", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 22, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 5, - "level": 4 - }, - { - "id": "Office chatter.awkward small talk.icebreaker attempt", - "type": "rectangle", - "pos": { - "x": 593, - "y": 9223372036854775807 - }, - "width": 12, - "height": 80, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#DEE1EB", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": true, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 134, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - }, - { - "id": "Office chatter.awkward small talk.unfortunate outcome", - "type": "rectangle", - "pos": { - "x": 593, - "y": 9223372036854775807 - }, - "width": 12, - "height": 80, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#DEE1EB", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": true, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 148, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - } - ], - "connections": [ - { - "id": "Office chatter.(alice -> bob)[1]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.bob", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "uhm, hi", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 50, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 99, - "y": 502 - }, - { - "x": 349, - "y": 502 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(bob -> alice)[1]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.alice", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "oh, hello", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 56, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 349, - "y": 632 - }, - { - "x": 99, - "y": 632 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(alice -> bob)[0]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.bob", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "what did you have for lunch?", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 187, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 99, - "y": 762 - }, - { - "x": 349, - "y": 762 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(bob -> alice)[0]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.alice", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "that's personal", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 99, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 349, - "y": 892 - }, - { - "x": 99, - "y": 892 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "(Office chatter.alice -- )[0]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "alice-lifeline-end-3851299086", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 99, - "y": 176 - }, - { - "x": 99, - "y": 1022 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - }, - { - "id": "(Office chatter.bob -- )[0]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "bob-lifeline-end-3036726343", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 349, - "y": 176 - }, - { - "x": 349, - "y": 1022 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - }, - { - "id": "(Office chatter.awkward small talk -- )[0]", - "src": "Office chatter.awkward small talk", - "srcArrow": "none", - "srcLabel": "", - "dst": "awkward small talk-lifeline-end-861194358", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 599.5, - "y": 176 - }, - { - "x": 599.5, - "y": 1022 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - } - ] -} diff --git a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/sketch.exp.svg b/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/sketch.exp.svg deleted file mode 100644 index 4638199b6..000000000 --- a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/dagre/sketch.exp.svg +++ /dev/null @@ -1,62 +0,0 @@ - -Office chatterAliceBobbyawkward small talk uhm, hioh, hellowhat did you have for lunch?that's personalok - - - - - - \ No newline at end of file diff --git a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/board.exp.json b/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/board.exp.json deleted file mode 100644 index 151e6b38a..000000000 --- a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/board.exp.json +++ /dev/null @@ -1,606 +0,0 @@ -{ - "name": "", - "fontFamily": "SourceSansPro", - "shapes": [ - { - "id": "Office chatter", - "type": "sequence_diagram", - "pos": { - "x": 12, - "y": 12 - }, - "width": 711, - "height": 1046, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#FFFFFF", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Office chatter", - "fontSize": 28, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 164, - "labelHeight": 41, - "labelPosition": "INSIDE_TOP_CENTER", - "zIndex": 0, - "level": 1 - }, - { - "id": "Office chatter.alice", - "type": "rectangle", - "pos": { - "x": 36, - "y": 122 - }, - "width": 150, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Alice", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 38, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.bob", - "type": "rectangle", - "pos": { - "x": 286, - "y": 122 - }, - "width": 150, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "Bobby", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 48, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.awkward small talk", - "type": "rectangle", - "pos": { - "x": 524, - "y": 122 - }, - "width": 175, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#EDF0FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "awkward small talk", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 135, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 0, - "level": 2 - }, - { - "id": "Office chatter.awkward small talk.awkward small talk", - "type": "rectangle", - "pos": { - "x": 605, - "y": 302 - }, - "width": 12, - "height": 98, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#E3E9FD", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 135, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - }, - { - "id": "Office chatter.awkward small talk.awkward small talk.ok", - "type": "page", - "pos": { - "x": 580, - "y": 318 - }, - "width": 62, - "height": 66, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#FFFFFF", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": null, - "label": "ok", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 22, - "labelHeight": 26, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "zIndex": 5, - "level": 4 - }, - { - "id": "Office chatter.awkward small talk.icebreaker attempt", - "type": "rectangle", - "pos": { - "x": 605, - "y": 9223372036854775807 - }, - "width": 12, - "height": 80, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#DEE1EB", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": true, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 134, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - }, - { - "id": "Office chatter.awkward small talk.unfortunate outcome", - "type": "rectangle", - "pos": { - "x": 605, - "y": 9223372036854775807 - }, - "width": 12, - "height": 80, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 0, - "borderRadius": 0, - "fill": "#DEE1EB", - "stroke": "#0D32B2", - "shadow": false, - "3d": false, - "multiple": false, - "double-border": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": true, - "fields": null, - "methods": null, - "columns": null, - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 148, - "labelHeight": 26, - "zIndex": 2, - "level": 3 - } - ], - "connections": [ - { - "id": "Office chatter.(alice -> bob)[1]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.bob", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "uhm, hi", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 50, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 111, - "y": 514 - }, - { - "x": 361, - "y": 514 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(bob -> alice)[1]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.alice", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "oh, hello", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 56, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 361, - "y": 644 - }, - { - "x": 111, - "y": 644 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(alice -> bob)[0]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.bob", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "what did you have for lunch?", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 187, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 111, - "y": 774 - }, - { - "x": 361, - "y": 774 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "Office chatter.(bob -> alice)[0]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "Office chatter.alice", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "that's personal", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 99, - "labelHeight": 21, - "labelPosition": "INSIDE_MIDDLE_CENTER", - "labelPercentage": 0, - "route": [ - { - "x": 361, - "y": 904 - }, - { - "x": 111, - "y": 904 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 4 - }, - { - "id": "(Office chatter.alice -- )[0]", - "src": "Office chatter.alice", - "srcArrow": "none", - "srcLabel": "", - "dst": "alice-lifeline-end-3851299086", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 111, - "y": 188 - }, - { - "x": 111, - "y": 1034 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - }, - { - "id": "(Office chatter.bob -- )[0]", - "src": "Office chatter.bob", - "srcArrow": "none", - "srcLabel": "", - "dst": "bob-lifeline-end-3036726343", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 361, - "y": 188 - }, - { - "x": 361, - "y": 1034 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - }, - { - "id": "(Office chatter.awkward small talk -- )[0]", - "src": "Office chatter.awkward small talk", - "srcArrow": "none", - "srcLabel": "", - "dst": "awkward small talk-lifeline-end-861194358", - "dstArrow": "none", - "dstLabel": "", - "opacity": 1, - "strokeDash": 6, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 611.5, - "y": 188 - }, - { - "x": 611.5, - "y": 1034 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 1 - } - ] -} diff --git a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/sketch.exp.svg b/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/sketch.exp.svg deleted file mode 100644 index 19f1468a1..000000000 --- a/e2etests/testdata/regression/sequence_diagram_ambiguous_edge_group/elk/sketch.exp.svg +++ /dev/null @@ -1,62 +0,0 @@ - -Office chatterAliceBobbyawkward small talk uhm, hioh, hellowhat did you have for lunch?that's personalok - - - - - - \ No newline at end of file diff --git a/e2etests/todo_test.go b/e2etests/todo_test.go index 3fbf45e67..a1a413206 100644 --- a/e2etests/todo_test.go +++ b/e2etests/todo_test.go @@ -219,6 +219,29 @@ Office chatter: { } } } +`, + }, + { + // issue https://github.com/terrastruct/d2/issues/748 + skip: true, + name: "sequence_diagram_ambiguous_edge_group", + script: ` +Office chatter: { + shape: sequence_diagram + alice: Alice + bob: Bobby + awkward small talk: { + awkward small talk.ok + alice -> bob: uhm, hi + bob -> alice: oh, hello + icebreaker attempt: { + alice -> bob: what did you have for lunch? + } + unfortunate outcome: { + bob -> alice: that's personal + } + } +} `, }, }