Skip to content

Commit

Permalink
Wait for styling panel to disappear.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Jun 2, 2024
1 parent b1b01de commit e2abadf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/editable-label.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("Editable Label", function () {
messageLabel.type(" $@%^{enter}");
cy.contains("method() $@%^").should("be.visible");
cy.get(".header").click();

cy.wait(1000);
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: "viewport",
Expand All @@ -30,6 +30,7 @@ describe("Editable Label", function () {
messageLabel.type(" n{backspace}n{enter}");
cy.contains("SelfMessage n").should("be.visible");
cy.get(".header").click();
cy.wait(1000);

cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
Expand All @@ -48,6 +49,7 @@ describe("Editable Label", function () {
messageLabel.type(" how are you?{enter}");
cy.contains("Hello Bob how are you?").should("be.visible");
cy.get(".header").click();
cy.wait(1000);

cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
Expand Down

0 comments on commit e2abadf

Please sign in to comment.