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

#15737 Repro: X-Rays auto generated titles contain "null" (#15751)

parent 8de74120
No related branches found
No related tags found
No related merge requests found
import { restore } from "__support__/cypress";
import { restore, visitQuestionAdhoc } from "__support__/cypress";
import { SAMPLE_DATASET } from "__support__/cypress_sample_dataset";
const { ORDERS, ORDERS_ID, PRODUCTS, PRODUCTS_ID } = SAMPLE_DATASET;
const {
ORDERS,
ORDERS_ID,
PRODUCTS,
PRODUCTS_ID,
PEOPLE,
PEOPLE_ID,
} = SAMPLE_DATASET;
describe("scenarios > x-rays", () => {
beforeEach(() => {
......@@ -103,5 +110,29 @@ describe("scenarios > x-rays", () => {
cy.findByText("A look at the number of People");
cy.get(".DashCard");
});
it.skip(`"${action.toUpperCase()}" should not show NULL in titles of generated dashboard cards (metabase#15737)`, () => {
cy.intercept("GET", "/api/automagic-dashboards/**").as("xray");
visitQuestionAdhoc({
name: "15737",
dataset_query: {
database: 1,
query: {
"source-table": PEOPLE_ID,
aggregation: [["count"]],
breakout: [["field", PEOPLE.SOURCE, null]],
},
type: "query",
},
display: "bar",
});
cy.get(".bar")
.first()
.click();
cy.findByText(action).click();
cy.wait("@xray");
cy.contains("null").should("not.exist");
});
});
});
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