Skip to content
Snippets Groups Projects
Unverified Commit e671a22c authored by Denis Berezin's avatar Denis Berezin Committed by GitHub
Browse files

Add reproduction test for #25415 (#31805)

[ci skip]
parent 8df278bf
No related branches found
No related tags found
No related merge requests found
import { popover, restore } from "e2e/support/helpers";
import { SAMPLE_DATABASE } from "e2e/support/cypress_sample_database";
const { ORDERS, ORDERS_ID } = SAMPLE_DATABASE;
describe.skip("issue 25415", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
});
it("should allow to drill-through aggregated query with a custom column on top level (metabase#25415)", () => {
cy.createQuestion(
{
name: "Aggregated query with custom column",
display: "line",
query: {
"source-query": {
"source-table": ORDERS_ID,
aggregation: [["count"]],
breakout: [["field", ORDERS.PRODUCT_ID, null]],
limit: 2,
},
expressions: {
"test custom": [
"*",
[
"field",
"count",
{
"base-type": "type/Integer",
},
],
2,
],
},
},
},
{ visitQuestion: true },
);
cy.get(".dc-tooltip-list").get(".dot").first().click({ force: true });
popover().findByText("See these Orders").click();
// filter gets applied
cy.findByTestId("qb-filters-panel").should("contain", "Product ID is 1");
// there is a table with data
cy.findByTestId("TableInteractive-root").should("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