Skip to content

Commit 364d181

Browse files
authored
fix(testing): avoid cypress crashes (#9196)
1 parent 7cf2287 commit 364d181

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/cubejs-testing/cypress/e2e/rollup-designer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ context("Playground: Rollup Designer", () => {
6262
cy.getByTestId("prism-code").should("contain.text", "main: ");
6363
cy.getByTestId("rd-input-every").clear().type("3");
6464
cy.getByTestId("rd-select-every-granularity")
65+
// This crazy chain of commands is needed to avoid crashing
6566
.find("input")
66-
.type("Day{enter}", { force: true });
67+
.focus({ force: true })
68+
.wait(500)
69+
.click({ force: true })
70+
.wait(500)
71+
.type("Day{enter}", { force: true })
72+
.wait(500);
6773
cy.getByTestId("prism-code").should("contain.text", "every: `3 day`");
6874
cy.getByTestId("rd-add-btn")
6975
.should("be.visible")

0 commit comments

Comments
 (0)