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

Repro #23076: Frontend incorrectly substitutes datetime field incorrect in Pivot Table (#23905)

parent 91340d90
No related branches found
No related tags found
No related merge requests found
import { restore } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS, ORDERS_ID, PRODUCTS, PEOPLE } = SAMPLE_DATABASE;
const questionDetails = {
name: "Orders, Distinct values of ID, Grouped by Product → Title and Created At (month) and User → ID",
query: {
"source-table": ORDERS_ID,
aggregation: [["distinct", ["field", ORDERS.ID, null]]],
breakout: [
["field", PRODUCTS.TITLE, { "source-field": ORDERS.PRODUCT_ID }],
["field", ORDERS.CREATED_AT, { "temporal-unit": "month" }],
["field", PEOPLE.ID, { "source-field": ORDERS.USER_ID }],
],
},
display: "pivot",
visualization_settings: {
"pivot_table.column_split": {
rows: [
["field", PRODUCTS.TITLE, { "source-field": ORDERS.PRODUCT_ID }],
["field", ORDERS.CREATED_AT, { "temporal-unit": "month" }],
["field", PEOPLE.ID, { "source-field": ORDERS.USER_ID }],
],
columns: [],
values: [["aggregation", 0]],
},
},
};
describe.skip("issue 23076", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.request("PUT", "/api/user/1", {
locale: "de",
});
cy.createQuestion(questionDetails, { visitQuestion: true });
});
it("should correctly translate dates (metabase#23076)", () => {
cy.findAllByText(/^Summen für/)
.should("be.visible")
.eq(1)
.invoke("text")
.should("eq", "Summen für Mai, 2017");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment