From 9eed2e278bd88bc4caf833e09ce23ec25d76ed74 Mon Sep 17 00:00:00 2001 From: Ibrahim Wassouf Date: Wed, 26 Jul 2023 22:36:26 -0300 Subject: [PATCH] Add imgSnapshotTest for escaped quotes --- cypress/integration/rendering/flowchart.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cypress/integration/rendering/flowchart.spec.js b/cypress/integration/rendering/flowchart.spec.js index 81c1ceeb9..3f7368a3a 100644 --- a/cypress/integration/rendering/flowchart.spec.js +++ b/cypress/integration/rendering/flowchart.spec.js @@ -901,4 +901,10 @@ graph TD { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' } ); }); + it('67: allow escaping quotes with backslash', () => { + imgSnapshotTest(` + graph TD + a_node("This has an escaped \\" in it") -- "edge string can escape too \\"" --> b_node + `); + }); });