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

[E2E] Fix xrays flake (#21389)

parent 947f38e6
No related branches found
No related tags found
No related merge requests found
......@@ -26,20 +26,18 @@ describe("scenarios > x-rays", () => {
it("should exist on homepage when person first signs in", () => {
cy.visit("/");
cy.contains("A look at your People table");
cy.contains("A look at your Orders table");
cy.contains("A look at your Products table");
cy.contains("A look at your Reviews table");
});
it("should be populated", () => {
cy.visit("/");
cy.findByText("People table").click();
// Let's explore one of our tables
cy.contains("A look at your People table").click();
cy.findByText("Something's gone wrong").should("not.exist");
cy.findByText("Here's an overview of the people in your People table");
cy.findByText("Overview");
cy.findByText("Per state");
cy.get(".Card").should("have.length", 11);
});
......@@ -148,11 +146,11 @@ describe("scenarios > x-rays", () => {
});
it("should be able to save an x-ray as a dashboard and visit it immediately (metabase#18028)", () => {
cy.visit("/");
cy.contains("A look at your Orders table").click();
cy.intercept("GET", "/app/assets/geojson/**").as("geojson");
cy.visit(`/auto/dashboard/table/${ORDERS_ID}`);
// There are a lot of spinners in this dashboard. Give them some time to disappear.
cy.findByTestId("loading-spinner", { timeout: 10000 }).should("not.exist");
cy.wait("@geojson", { timeout: 10000 });
cy.button("Save this").click();
......@@ -165,11 +163,10 @@ describe("scenarios > x-rays", () => {
cy.findByText("How these transactions are distributed");
});
it("should be able to click the title of an x-ray dashcard to see it in the query builder", () => {
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.visit("/");
cy.contains("A look at your Orders table").click();
cy.visit(`/auto/dashboard/table/${ORDERS_ID}`);
// confirm results of "Total transactions" card are present
cy.findByText("18,760", 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