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

#16246 Repro: Incorrect values on data points for waterfall charts when one of...

#16246 Repro: Incorrect values on data points for waterfall charts when one of the values is 0 (#16265)
parent 8f18c64d
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,35 @@ describe("scenarios > visualizations > waterfall", () => {
cy.get(".Visualization .bar");
});
it.skip("should display correct values when one of them is 0 (metabase#16246)", () => {
visitQuestionAdhoc({
dataset_query: {
type: "native",
native: {
query:
"SELECT * FROM (\nVALUES \n('a',2),\n('b',1),\n('c',-0.5),\n('d',-0.5),\n('e',0.1),\n('f',0),\n('g', -2)\n)\n",
"template-tags": {},
},
database: 1,
},
display: "waterfall",
visualization_settings: {
"graph.show_values": true,
},
});
cy.get(".value-label")
.as("labels")
.eq(-3)
.invoke("text")
.should("eq", "0");
cy.get("@labels")
.last()
.invoke("text")
.should("eq", "0.1");
});
describe("scenarios > visualizations > waterfall settings", () => {
beforeEach(() => {
restore();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment