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

Repro #27380: Doing "Zoom in" from dashboard drops fields from joined tables (#27390)

parent 3077bce1
No related branches found
No related tags found
No related merge requests found
import { restore, visitDashboard } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS, ORDERS_ID, PRODUCTS } = SAMPLE_DATABASE;
const questionDetails = {
query: {
"source-table": ORDERS_ID,
aggregation: [["count"]],
breakout: [
[
"field",
PRODUCTS.CREATED_AT,
{ "source-field": ORDERS.PRODUCT_ID, "temporal-unit": "month" },
],
],
},
display: "line",
};
describe.skip("issue 27380", () => {
beforeEach(() => {
cy.intercept("POST", "/api/dataset").as("dataset");
restore();
cy.signInAsAdmin();
cy.createQuestionAndDashboard({ questionDetails }).then(
({ body: { dashboard_id } }) => {
visitDashboard(dashboard_id);
},
);
});
it("should not drop fields from joined table on dashboard 'zoom-in' (metabase#27380)", () => {
// Doesn't really matter which 'circle" we click on the graph
cy.get("circle").last().realClick();
cy.findByText("Zoom in").click();
cy.wait("@dataset");
// Graph should still exist
// Let's check only the y-axis label
cy.get("y-axis-label").invoke("text").should("eq", "Count");
cy.icon("notebook").click();
cy.findByText("Pick a column to group by").should("not.exist");
cy.findByText(/Products? → Created At: Month/);
});
});
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