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

#18476 Repro: Visible columns list in table options sidebar does not respect...

#18476 Repro: Visible columns list in table options sidebar does not respect renamed columns (#18507)
parent 33a69811
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import {
openOrdersTable,
visitQuestionAdhoc,
popover,
sidebar,
} from "__support__/e2e/cypress";
import { SAMPLE_DATASET } from "__support__/e2e/cypress_sample_dataset";
......@@ -172,6 +173,34 @@ describe("scenarios > question > settings", () => {
popover().within(() => cy.icon("gear").click()); // open created_at column settings
cy.findByText("Date style"); // shows created_at column settings
});
it.skip("should respect renamed column names in the settings sidebar (metabase#18476)", () => {
const newColumnTitle = "Pre-tax";
const questionDetails = {
dataset_query: {
database: 1,
query: { "source-table": 2 },
type: "query",
},
display: "table",
visualization_settings: {
column_settings: {
[`["ref",["field",${ORDERS.SUBTOTAL},null]]`]: {
column_title: newColumnTitle,
},
},
},
};
visitQuestionAdhoc(questionDetails);
cy.findByText(newColumnTitle);
cy.findByTestId("viz-settings-button").click();
sidebar().findByText(newColumnTitle);
});
});
describe("resetting state", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment