Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

flake: wait for card query after revert (#68796)

John Swanson54e150e85612
diff --git a/e2e/test/scenarios/filters-reproductions/dashboard-filters-with-question-revert.cy.spec.js b/e2e/test/scenarios/filters-reproductions/dashboard-filters-with-question-revert.cy.spec.js
index 373b2ad79e1..be1282feff1 100644
--- a/e2e/test/scenarios/filters-reproductions/dashboard-filters-with-question-revert.cy.spec.js
+++ b/e2e/test/scenarios/filters-reproductions/dashboard-filters-with-question-revert.cy.spec.js
@@ -96,6 +96,7 @@ describe("issue 35954", () => {
cy.log("Revert the question to its original (GUI) version");
cy.intercept("POST", "/api/revision/revert").as("revertQuestion");
+ cy.intercept("POST", "/api/card/*/query").as("cardQuery");
H.questionInfoButton().click();
cy.findByRole("tab", { name: "History" }).click();
@@ -105,6 +106,7 @@ describe("issue 35954", () => {
.findByTestId("question-revert-button")
.click();
cy.wait("@revertQuestion");
+ cy.wait("@cardQuery");
// Mid-test assertions to root out the flakiness
cy.findByRole("tab", { name: "History" }).click();
cy.findByTestId("saved-question-history-list").should(