Skip to content

Commit

Permalink
chore: test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga committed Sep 3, 2024
1 parent 1c51d51 commit 8108051
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cypress/e2e/demo.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
context("WM", () => {
const screenshotConfig = { blackout: ["ol[role='tree']"] };
const defaultWait = 800;

beforeEach(() => {
cy.visit("iframe.html?args=&id=demo--defult&viewMode=story");
Expand Down Expand Up @@ -29,11 +30,11 @@ context("WM", () => {
cy.contains("to bottom").should("be.enabled");
cy.document().matchImage({ screenshotConfig });
cy.viewport(500, 500);
cy.wait(300);
cy.wait(defaultWait);
cy.document().matchImage({ screenshotConfig });
cy.contains("to bottom").should("be.enabled");
cy.viewport(1280, 815);
cy.wait(300);
cy.wait(defaultWait);
cy.contains("to bottom").should("be.disabled");
cy.contains("add line").should("be.visible").click().click().click();
cy.contains("to bottom").should("be.enabled");
Expand All @@ -46,11 +47,11 @@ context("WM", () => {
cy.contains("to bottom").should("be.enabled");
cy.document().matchImage({ screenshotConfig });
cy.viewport(500, 500);
cy.wait(300);
cy.wait(defaultWait);
cy.document().matchImage({ screenshotConfig });
cy.contains("to bottom").should("be.enabled");
cy.viewport(1280, 850);
cy.wait(300);
cy.wait(defaultWait);
cy.contains("to bottom").should("be.disabled");
cy.contains("add line").should("be.visible").click().click().click();
cy.contains("to bottom").should("be.enabled");
Expand Down

0 comments on commit 8108051

Please sign in to comment.