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

Add repro for #15353 (#20672)

parent 5bd243a7
No related branches found
No related tags found
No related merge requests found
import { restore, sidebar } from "__support__/e2e/cypress";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS, ORDERS_ID } = SAMPLE_DATABASE;
const questionDetails = {
name: "15353",
query: {
"source-table": ORDERS_ID,
aggregation: [["count"]],
breakout: [["field", ORDERS.CREATED_AT, { "temporal-unit": "year" }]],
},
display: "pivot",
};
describe("issue 15353", () => {
beforeEach(() => {
cy.intercept("POST", "/api/dataset/pivot").as("pivotDataset");
restore();
cy.signInAsAdmin();
cy.createQuestion(questionDetails, { visitQuestion: true });
});
it("should be able to change field name used for values (metabase#15353)", () => {
cy.findByTestId("viz-settings-button").click();
sidebar()
.contains("Count")
.click();
cy.findByText("See options…").click();
cy.findByDisplayValue("Count")
.type(" renamed")
.blur();
cy.wait("@pivotDataset");
cy.get(".Visualization").should("contain", "Count renamed");
});
});
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