From ad8a8982ec3f053dd156b13c16560c539739a33e Mon Sep 17 00:00:00 2001 From: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:50:39 +0100 Subject: [PATCH] [E2E] Fix x-ray flake (#28604) --- .../metabase/scenarios/dashboard/x-rays.cy.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/test/metabase/scenarios/dashboard/x-rays.cy.spec.js b/frontend/test/metabase/scenarios/dashboard/x-rays.cy.spec.js index e7d08ccd30f..7e60138d6a2 100644 --- a/frontend/test/metabase/scenarios/dashboard/x-rays.cy.spec.js +++ b/frontend/test/metabase/scenarios/dashboard/x-rays.cy.spec.js @@ -2,7 +2,6 @@ import { restore, getDimensionByName, visitQuestionAdhoc, - popover, summarize, visualize, startNewQuestion, @@ -163,7 +162,9 @@ describe("scenarios > x-rays", () => { it("should be able to click the title of an x-ray dashcard to see it in the query builder (metabase#19405)", () => { const timeout = { timeout: 10000 }; + cy.intercept("GET", "/app/assets/geojson/**").as("geojson"); cy.visit(`/auto/dashboard/table/${ORDERS_ID}`); + cy.wait("@geojson", { timeout }); // confirm results of "Total transactions" card are present cy.findByText("18,760", timeout); @@ -177,11 +178,10 @@ describe("scenarios > x-rays", () => { // add a parameter filter to the auto dashboard cy.findByText("State", timeout).click(); - popover().within(() => { - cy.findByPlaceholderText("Search the list").type("GA{enter}"); - cy.findByText("GA").click(); - cy.findByText("Add filter").click(); - }); + + cy.findByPlaceholderText("Search the list").type("GA{enter}"); + cy.findByTestId("GA-filter-value").should("be.visible").click(); + cy.button("Add filter").click(); // confirm results of "Total transactions" card were updated cy.findByText("463", timeout); -- GitLab