Skip to content
Snippets Groups Projects
Unverified Commit 64e894e5 authored by Aleksandr Lesnenko's avatar Aleksandr Lesnenko Committed by GitHub
Browse files

fix x-ray flake: bump timeout, look for a specific card (#35011)

parent ad99d370
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import {
visitDashboardAndCreateTab,
popover,
getDashboardCards,
saveDashboard,
} from "e2e/support/helpers";
import { SAMPLE_DB_ID } from "e2e/support/cypress_data";
......@@ -278,14 +279,14 @@ describe("scenarios > x-rays", { tags: "@slow" }, () => {
visualization_settings: {},
},
});
visitDashboardAndCreateTab({ dashboardId: dashboard_id });
visitDashboardAndCreateTab({ dashboardId: dashboard_id, save: false });
cy.findByRole("tab", { name: "Tab 1" }).click();
saveDashboard();
cy.get("circle").eq(0).click({ force: true });
popover().findByText("Automatic insights…").click();
popover().findByText("X-ray").click();
cy.wait("@dataset", { timeout: 30000 });
cy.wait("@dataset", { timeout: 60000 });
// Ensure charts actually got rendered
cy.get("text.x-axis-label").contains("Created At");
......
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