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

#15655 Repro: X-rays from a nested question fail (#15684)

* Test both action items
parent eb65eaf8
No related branches found
No related tags found
No related merge requests found
......@@ -75,4 +75,33 @@ describe("scenarios > x-rays", () => {
cy.icon("warning").should("not.exist");
});
});
["X-ray", "Compare to the rest"].forEach(action => {
it.skip(`"${action.toUpperCase()}" should work on a nested question made from base native question (metabase#15655)`, () => {
cy.intercept("GET", "/api/automagic-dashboards/**").as("xray");
cy.createNativeQuestion({
name: "15655",
native: { query: "select * from people" },
});
cy.visit("/question/new");
cy.findByText("Simple question").click();
cy.findByText("Saved Questions").click();
cy.findByText("15655").click();
cy.findByText("Summarize").click();
cy.get(".List-item-title")
.contains(/Source/i)
.click();
cy.get(".bar")
.first()
.click({ force: true });
cy.findByText(action).click();
cy.wait("@xray").then(xhr => {
expect(xhr.response.body.cause).not.to.exist;
expect(xhr.response.statusCode).not.to.eq(500);
});
cy.findByText("A look at the number of People");
cy.get(".DashCard");
});
});
});
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