Skip to content

Commit ad07d0e

Browse files
authored
Merge pull request #162 from mermaid-js/fix/styling-panel-should-not-show
Fix/styling panel should not show
2 parents 0df1588 + e2abadf commit ad07d0e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
731 Bytes
Loading
-170 Bytes
Loading
-661 Bytes
Loading

cypress/e2e/editable-label.spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ describe("Editable Label", function () {
1111
messageLabel.dblclick();
1212
messageLabel.type(" $@%^{enter}");
1313
cy.contains("method() $@%^").should("be.visible");
14-
cy.get("body").click();
15-
14+
cy.get(".header").click();
15+
cy.wait(1000);
1616
cy.document().toMatchImageSnapshot({
1717
imageConfig: { threshold: 0.01 },
1818
capture: "viewport",
@@ -29,7 +29,8 @@ describe("Editable Label", function () {
2929
messageLabel.dblclick();
3030
messageLabel.type(" n{backspace}n{enter}");
3131
cy.contains("SelfMessage n").should("be.visible");
32-
cy.get("body").click();
32+
cy.get(".header").click();
33+
cy.wait(1000);
3334

3435
cy.document().toMatchImageSnapshot({
3536
imageConfig: { threshold: 0.01 },
@@ -47,7 +48,8 @@ describe("Editable Label", function () {
4748
messageLabel.dblclick();
4849
messageLabel.type(" how are you?{enter}");
4950
cy.contains("Hello Bob how are you?").should("be.visible");
50-
cy.get("body").click();
51+
cy.get(".header").click();
52+
cy.wait(1000);
5153

5254
cy.document().toMatchImageSnapshot({
5355
imageConfig: { threshold: 0.01 },

0 commit comments

Comments
 (0)