Skip to content
Snippets Groups Projects
Unverified Commit ad8a8982 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

[E2E] Fix x-ray flake (#28604)

parent d1f9fd44
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment