Skip to content

Commit 4f6b87b

Browse files
authored
chore(ci): Comment out unreliable rollup designer e2e test (#9687)
1 parent b94470f commit 4f6b87b

File tree

1 file changed

+80
-78
lines changed

1 file changed

+80
-78
lines changed
Lines changed: 80 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,83 @@
11
/* eslint-disable */
2-
import { ordersCountQuery } from "../queries";
2+
// import { ordersCountQuery } from "../queries";
33

4-
context("Playground: Rollup Designer", () => {
5-
describe("Opens the Rollup Designer modal", () => {
6-
it("opens the Rollup Designer without running a query", () => {
7-
cy.setQuery(ordersCountQuery);
4+
// Commented out EVERYTHING because these tests crash almost every time in CI, so they are not reliable.
85

9-
cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
10-
cy.getByTestId("rd-btn").click();
11-
cy.wait(1000);
12-
cy.getByTestId("rd-modal").should("be.visible");
13-
cy.wait(1000);
14-
cy.getByTestId("rd-query-tab").should("exist");
15-
16-
cy.getByTestId("member-tag-Orders.Count").should("exist");
17-
cy.getByTestId("rd-query-tab").click({ timeout: 120 * 1000 });
18-
cy.getByTestId("rd-incompatible-query").should("not.exist");
19-
20-
cy.getByTestId("member-tag-Orders.Count").find(".anticon-close").click();
21-
cy.getByTestId("member-tag-Orders.Count").should("not.exist");
22-
cy.getByTestId("rd-incompatible-query").should("exist");
23-
24-
cy.getByTestId("rd-match-rollup-btn").click();
25-
cy.getByTestId("member-tag-Orders.Count").should("exist");
26-
cy.getByTestId("rd-incompatible-query").should("not.exist");
27-
});
28-
29-
it("opens the Rollup Designer with an empty query", () => {
30-
cy.setQuery({});
31-
32-
cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
33-
cy.getByTestId("rd-btn").click();
34-
cy.wait(1000);
35-
cy.getByTestId("rd-modal").should("be.visible");
36-
cy.wait(1000);
37-
cy.getByTestId("rd-query-tab").should("not.exist");
38-
});
39-
40-
it("opens the Rollup Designer after running a query", () => {
41-
cy.setQuery(ordersCountQuery);
42-
cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
43-
cy.runQuery();
44-
45-
cy.getByTestId("not-pre-agg-query-btn").click();
46-
cy.getByTestId("rd-modal").should("be.visible");
47-
48-
cy.getByTestId("member-tag-Orders.Count").should("exist");
49-
cy.getByTestId("rd-query-tab").click({
50-
timeout: 60 * 1000,
51-
force: true,
52-
});
53-
});
54-
55-
// Commented out because these tests crash almost every time in CI, so they are not reliable.
56-
// TODO: Fix the `We detected that the Chrome Renderer process just crashed.`
57-
// it("applies settings", () => {
58-
// cy.setQuery(ordersCountQuery);
59-
//
60-
// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
61-
// cy.getByTestId("rd-btn").click();
62-
// cy.wait(500);
63-
// cy.getByTestId("rd-settings-tab").click();
64-
// cy.getByTestId("prism-code").should("contain.text", "main: ");
65-
// cy.getByTestId("rd-input-every").clear().type("3");
66-
// cy.getByTestId("rd-select-every-granularity")
67-
// // This crazy chain of commands is needed to avoid crashing
68-
// .find("input")
69-
// .focus({ force: true })
70-
// .wait(500)
71-
// .click({ force: true })
72-
// .wait(500)
73-
// .type("Day{enter}", { force: true })
74-
// .wait(500);
75-
// cy.getByTestId("prism-code").should("contain.text", "every: `3 day`");
76-
// cy.getByTestId("rd-add-btn")
77-
// .should("be.visible")
78-
// .should("not.be.disabled");
79-
// });
80-
});
81-
});
6+
// context("Playground: Rollup Designer", () => {
7+
// describe("Opens the Rollup Designer modal", () => {
8+
// it("opens the Rollup Designer without running a query", () => {
9+
// cy.setQuery(ordersCountQuery);
10+
//
11+
// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
12+
// cy.getByTestId("rd-btn").click();
13+
// cy.wait(1000);
14+
// cy.getByTestId("rd-modal").should("be.visible");
15+
// cy.wait(1000);
16+
// cy.getByTestId("rd-query-tab").should("exist");
17+
//
18+
// cy.getByTestId("member-tag-Orders.Count").should("exist");
19+
// cy.getByTestId("rd-query-tab").click({ timeout: 120 * 1000 });
20+
// cy.getByTestId("rd-incompatible-query").should("not.exist");
21+
//
22+
// cy.getByTestId("member-tag-Orders.Count").find(".anticon-close").click();
23+
// cy.getByTestId("member-tag-Orders.Count").should("not.exist");
24+
// cy.getByTestId("rd-incompatible-query").should("exist");
25+
//
26+
// cy.getByTestId("rd-match-rollup-btn").click();
27+
// cy.getByTestId("member-tag-Orders.Count").should("exist");
28+
// cy.getByTestId("rd-incompatible-query").should("not.exist");
29+
// });
30+
//
31+
// it("opens the Rollup Designer with an empty query", () => {
32+
// cy.setQuery({});
33+
//
34+
// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
35+
// cy.getByTestId("rd-btn").click();
36+
// cy.wait(1000);
37+
// cy.getByTestId("rd-modal").should("be.visible");
38+
// cy.wait(1000);
39+
// cy.getByTestId("rd-query-tab").should("not.exist");
40+
// });
41+
//
42+
// it("opens the Rollup Designer after running a query", () => {
43+
// cy.setQuery(ordersCountQuery);
44+
// cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
45+
// cy.runQuery();
46+
//
47+
// cy.getByTestId("not-pre-agg-query-btn").click();
48+
// cy.getByTestId("rd-modal").should("be.visible");
49+
//
50+
// cy.getByTestId("member-tag-Orders.Count").should("exist");
51+
// cy.getByTestId("rd-query-tab").click({
52+
// timeout: 60 * 1000,
53+
// force: true,
54+
// });
55+
// });
56+
//
57+
// // Commented out because these tests crash almost every time in CI, so they are not reliable.
58+
// // TODO: Fix the `We detected that the Chrome Renderer process just crashed.`
59+
// // it("applies settings", () => {
60+
// // cy.setQuery(ordersCountQuery);
61+
// //
62+
// // cy.getByQa("QueryBuilder", { timeout: 30 * 1000 }).should("exist");
63+
// // cy.getByTestId("rd-btn").click();
64+
// // cy.wait(500);
65+
// // cy.getByTestId("rd-settings-tab").click();
66+
// // cy.getByTestId("prism-code").should("contain.text", "main: ");
67+
// // cy.getByTestId("rd-input-every").clear().type("3");
68+
// // cy.getByTestId("rd-select-every-granularity")
69+
// // // This crazy chain of commands is needed to avoid crashing
70+
// // .find("input")
71+
// // .focus({ force: true })
72+
// // .wait(500)
73+
// // .click({ force: true })
74+
// // .wait(500)
75+
// // .type("Day{enter}", { force: true })
76+
// // .wait(500);
77+
// // cy.getByTestId("prism-code").should("contain.text", "every: `3 day`");
78+
// // cy.getByTestId("rd-add-btn")
79+
// // .should("be.visible")
80+
// // .should("not.be.disabled");
81+
// // });
82+
// });
83+
// });

0 commit comments

Comments
 (0)