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

#11907 Repro: Tooltip should display correct value for unaggregated data [ci skip] (#14102)

parent c6b2b466
Branches
Tags
No related merge requests found
......@@ -299,6 +299,37 @@ describe("scenarios > visualizations > drillthroughs > chart drill", () => {
cy.findByText("There was a problem with your question").should("not.exist");
});
it.skip("should display correct value in a tooltip for unaggregated data (metabase#11907)", () => {
cy.request("POST", "/api/card", {
name: "11907",
dataset_query: {
type: "native",
native: {
query:
"SELECT parsedatetime('2020-01-01', 'yyyy-MM-dd') AS \"d\", 5 AS \"c\" UNION ALL\nSELECT parsedatetime('2020-01-01', 'yyyy-MM-dd') AS \"d\", 2 AS \"c\" UNION ALL\nSELECT parsedatetime('2020-01-01', 'yyyy-MM-dd') AS \"d\", 3 AS \"c\" UNION ALL\nSELECT parsedatetime('2020-01-02', 'yyyy-MM-dd') AS \"d\", 1 AS \"c\" UNION ALL\nSELECT parsedatetime('2020-01-02', 'yyyy-MM-dd') AS \"d\", 4 AS \"c\"",
"template-tags": {},
},
database: 1,
},
display: "line",
visualization_settings: {},
}).then(({ body: { id: QUESTION_ID } }) => {
cy.visit(`/question/${QUESTION_ID}`);
clickLineDot({ index: 0 });
popover().within(() => {
cy.findByText("January 1, 2020");
cy.findByText("10");
});
clickLineDot({ index: 1 });
popover().within(() => {
cy.findByText("January 2, 2020");
cy.findByText("5");
});
});
});
describe("for an unsaved question", () => {
before(() => {
restore();
......@@ -329,3 +360,9 @@ describe("scenarios > visualizations > drillthroughs > chart drill", () => {
});
});
});
function clickLineDot({ index } = {}) {
cy.get(".Visualization .dot")
.eq(index)
.click({ force: true });
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment