Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Unskip working pivot-tables test (#64349)

Fraserf14ae0297b4f
diff --git a/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js
index 47e19e691fc..4c9958b86ab 100644
--- a/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js
+++ b/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js
@@ -732,39 +732,31 @@ describe("scenarios > visualizations > pivot tables", { tags: "@slow" }, () => {
H.popover().findByText(HINT_TEXT).should("not.exist");
});
- it(
- "should work for user without data permissions (metabase#14989)",
- { tags: "@skip" },
- () => {
- cy.request("POST", "/api/card", {
- name: "14989",
- dataset_query: {
- database: SAMPLE_DB_ID,
- query: {
- "source-table": PRODUCTS_ID,
- aggregation: [["count"]],
- breakout: [
- ["datetime-field", ["field-id", PRODUCTS.CREATED_AT], "year"],
- ["field-id", PRODUCTS.CATEGORY],
- ],
- },
- type: "query",
+ it("should work for user without data permissions (metabase#14989)", () => {
+ cy.request("POST", "/api/card", {
+ name: "14989",
+ dataset_query: {
+ database: SAMPLE_DB_ID,
+ query: {
+ "source-table": PRODUCTS_ID,
+ aggregation: [["count"]],
+ breakout: [
+ ["datetime-field", ["field-id", PRODUCTS.CREATED_AT], "year"],
+ ["field-id", PRODUCTS.CATEGORY],
+ ],
},
- display: "pivot",
- visualization_settings: {},
- }).then(({ body: { id: QUESTION_ID } }) => {
- cy.signIn("nodata");
- H.visitQuestion(QUESTION_ID);
- });
-
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("Grand totals");
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("Row totals");
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("200");
- },
- );
+ type: "query",
+ },
+ display: "pivot",
+ visualization_settings: {},
+ }).then(({ body: { id: QUESTION_ID } }) => {
+ cy.signIn("nodata");
+ H.visitQuestion(QUESTION_ID);
+ });
+ cy.findAllByTestId("pivot-table-cell").contains("Grand totals");
+ cy.findAllByTestId("pivot-table-cell").contains("Row totals");
+ cy.findAllByTestId("pivot-table-cell").contains("200");
+ });
it("should work with custom mapping of display values (metabase#14985)", () => {
cy.intercept("POST", "/api/dataset/pivot").as("datasetPivot");