From 2c28e0c11b376282152f372347825dfa0a3dcd7b Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 18 Jun 2025 19:42:56 +0300 Subject: [PATCH] chore(ci): Comment out unreliable rollup designer e2e test --- .../cypress/e2e/rollup-designer.js | 158 +++++++++--------- 1 file changed, 80 insertions(+), 78 deletions(-) diff --git a/packages/cubejs-testing/cypress/e2e/rollup-designer.js b/packages/cubejs-testing/cypress/e2e/rollup-designer.js index ef9d4ae34d48b..39824346b052d 100644 --- a/packages/cubejs-testing/cypress/e2e/rollup-designer.js +++ b/packages/cubejs-testing/cypress/e2e/rollup-designer.js @@ -1,81 +1,83 @@ /* eslint-disable */ -import { ordersCountQuery } from "../queries"; +// import { ordersCountQuery } from "../queries"; -context("Playground: Rollup Designer", () => { - describe("Opens the Rollup Designer modal", () => { - it("opens the Rollup Designer without running a query", () => { - cy.setQuery(ordersCountQuery); +// Commented out EVERYTHING because these tests crash almost every time in CI, so they are not reliable. - cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); - cy.getByTestId("rd-btn").click(); - cy.wait(1000); - cy.getByTestId("rd-modal").should("be.visible"); - cy.wait(1000); - cy.getByTestId("rd-query-tab").should("exist"); - - cy.getByTestId("member-tag-Orders.Count").should("exist"); - cy.getByTestId("rd-query-tab").click({ timeout: 120 * 1000 }); - cy.getByTestId("rd-incompatible-query").should("not.exist"); - - cy.getByTestId("member-tag-Orders.Count").find(".anticon-close").click(); - cy.getByTestId("member-tag-Orders.Count").should("not.exist"); - cy.getByTestId("rd-incompatible-query").should("exist"); - - cy.getByTestId("rd-match-rollup-btn").click(); - cy.getByTestId("member-tag-Orders.Count").should("exist"); - cy.getByTestId("rd-incompatible-query").should("not.exist"); - }); - - it("opens the Rollup Designer with an empty query", () => { - cy.setQuery({}); - - cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); - cy.getByTestId("rd-btn").click(); - cy.wait(1000); - cy.getByTestId("rd-modal").should("be.visible"); - cy.wait(1000); - cy.getByTestId("rd-query-tab").should("not.exist"); - }); - - it("opens the Rollup Designer after running a query", () => { - cy.setQuery(ordersCountQuery); - cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); - cy.runQuery(); - - cy.getByTestId("not-pre-agg-query-btn").click(); - cy.getByTestId("rd-modal").should("be.visible"); - - cy.getByTestId("member-tag-Orders.Count").should("exist"); - cy.getByTestId("rd-query-tab").click({ - timeout: 60 * 1000, - force: true, - }); - }); - - // Commented out because these tests crash almost every time in CI, so they are not reliable. - // TODO: Fix the `We detected that the Chrome Renderer process just crashed.` - // it("applies settings", () => { - // cy.setQuery(ordersCountQuery); - // - // cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); - // cy.getByTestId("rd-btn").click(); - // cy.wait(500); - // cy.getByTestId("rd-settings-tab").click(); - // cy.getByTestId("prism-code").should("contain.text", "main: "); - // cy.getByTestId("rd-input-every").clear().type("3"); - // cy.getByTestId("rd-select-every-granularity") - // // This crazy chain of commands is needed to avoid crashing - // .find("input") - // .focus({ force: true }) - // .wait(500) - // .click({ force: true }) - // .wait(500) - // .type("Day{enter}", { force: true }) - // .wait(500); - // cy.getByTestId("prism-code").should("contain.text", "every: `3 day`"); - // cy.getByTestId("rd-add-btn") - // .should("be.visible") - // .should("not.be.disabled"); - // }); - }); -}); +// context("Playground: Rollup Designer", () => { +// describe("Opens the Rollup Designer modal", () => { +// it("opens the Rollup Designer without running a query", () => { +// cy.setQuery(ordersCountQuery); +// +// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); +// cy.getByTestId("rd-btn").click(); +// cy.wait(1000); +// cy.getByTestId("rd-modal").should("be.visible"); +// cy.wait(1000); +// cy.getByTestId("rd-query-tab").should("exist"); +// +// cy.getByTestId("member-tag-Orders.Count").should("exist"); +// cy.getByTestId("rd-query-tab").click({ timeout: 120 * 1000 }); +// cy.getByTestId("rd-incompatible-query").should("not.exist"); +// +// cy.getByTestId("member-tag-Orders.Count").find(".anticon-close").click(); +// cy.getByTestId("member-tag-Orders.Count").should("not.exist"); +// cy.getByTestId("rd-incompatible-query").should("exist"); +// +// cy.getByTestId("rd-match-rollup-btn").click(); +// cy.getByTestId("member-tag-Orders.Count").should("exist"); +// cy.getByTestId("rd-incompatible-query").should("not.exist"); +// }); +// +// it("opens the Rollup Designer with an empty query", () => { +// cy.setQuery({}); +// +// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); +// cy.getByTestId("rd-btn").click(); +// cy.wait(1000); +// cy.getByTestId("rd-modal").should("be.visible"); +// cy.wait(1000); +// cy.getByTestId("rd-query-tab").should("not.exist"); +// }); +// +// it("opens the Rollup Designer after running a query", () => { +// cy.setQuery(ordersCountQuery); +// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); +// cy.runQuery(); +// +// cy.getByTestId("not-pre-agg-query-btn").click(); +// cy.getByTestId("rd-modal").should("be.visible"); +// +// cy.getByTestId("member-tag-Orders.Count").should("exist"); +// cy.getByTestId("rd-query-tab").click({ +// timeout: 60 * 1000, +// force: true, +// }); +// }); +// +// // Commented out because these tests crash almost every time in CI, so they are not reliable. +// // TODO: Fix the `We detected that the Chrome Renderer process just crashed.` +// // it("applies settings", () => { +// // cy.setQuery(ordersCountQuery); +// // +// // cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist"); +// // cy.getByTestId("rd-btn").click(); +// // cy.wait(500); +// // cy.getByTestId("rd-settings-tab").click(); +// // cy.getByTestId("prism-code").should("contain.text", "main: "); +// // cy.getByTestId("rd-input-every").clear().type("3"); +// // cy.getByTestId("rd-select-every-granularity") +// // // This crazy chain of commands is needed to avoid crashing +// // .find("input") +// // .focus({ force: true }) +// // .wait(500) +// // .click({ force: true }) +// // .wait(500) +// // .type("Day{enter}", { force: true }) +// // .wait(500); +// // cy.getByTestId("prism-code").should("contain.text", "every: `3 day`"); +// // cy.getByTestId("rd-add-btn") +// // .should("be.visible") +// // .should("not.be.disabled"); +// // }); +// }); +// });