The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Add skip tag and replace .skip() (#62141)
Fraser6aa97914b442
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 752b7246520..893d6ea3bfd 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -131,7 +131,7 @@ jobs:run: |echo "Running tests with specs: $SPEC_PATH"node e2e/runner/run_cypress_ci.js e2e \- --env grepTags="-@mongo+-@flaky+-@OSS --@quarantine",grepOmitFiltered=true \+ --env grepTags="-@mongo+-@flaky+-@OSS+-@skip",grepOmitFiltered=true \--spec "$SPEC_PATH" \--browser ${{ steps.cypress-prep.outputs.chrome-path }}@@ -143,7 +143,7 @@ jobs:run: |echo "Running tests with specs: $SPEC_PATH"node e2e/runner/run_cypress_ci.js e2e \- --env grepTags="${{inputs.tags}} --@quarantine",grepOmitFiltered=true \+ --env grepTags="${{inputs.tags}}+-@skip",grepOmitFiltered=true \--spec "$SPEC_PATH" \--browser ${{ steps.cypress-prep.outputs.chrome-path }}diff --git a/bin/backward-compatibility-test.js b/bin/backward-compatibility-test.jsindex 34bd36066f4..b0cbce90e72 100644--- a/bin/backward-compatibility-test.js+++ b/bin/backward-compatibility-test.js@@ -220,7 +220,7 @@ async function test() {// OPEN_UI: "true",};- const cypressCommand = `node e2e/runner/run_cypress_ci.js e2e --env grepTags="--@flaky --@OSS --@external",grepOmitFiltered=true --spec "${testForThisShard.join(",")}"`;+ const cypressCommand = `node e2e/runner/run_cypress_ci.js e2e --env grepTags="--@flaky --@OSS --@external --@skip",grepOmitFiltered=true --spec "${testForThisShard.join(",")}"`;executeCommand(cypressCommand, FE_FOLDER, testEnv);}diff --git a/e2e/test/scenarios/admin-2/settings.cy.spec.js b/e2e/test/scenarios/admin-2/settings.cy.spec.jsindex 419d9197a16..69270102c7f 100644--- a/e2e/test/scenarios/admin-2/settings.cy.spec.js+++ b/e2e/test/scenarios/admin-2/settings.cy.spec.js@@ -268,30 +268,38 @@ H.describeWithSnowplow("scenarios > admin > settings", () => {});// Unskip when mocking Cloud in Cypress is fixed (#18289)- it.skip("should hide self-hosted settings when running Metabase Cloud", () => {- H.setupMetabaseCloud();- cy.visit("/admin/settings/general");-- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Site Name");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Site URL").should("not.exist");-- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Email").should("not.exist");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Updates").should("not.exist");- });+ it(+ "should hide self-hosted settings when running Metabase Cloud",+ { tags: "@skip" },+ () => {+ H.setupMetabaseCloud();+ cy.visit("/admin/settings/general");++ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Site Name");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Site URL").should("not.exist");++ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Email").should("not.exist");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Updates").should("not.exist");+ },+ );// Unskip when mocking Cloud in Cypress is fixed (#18289)- it.skip("should hide the store link when running Metabase Cloud", () => {- H.setupMetabaseCloud();- cy.visit("/admin/settings/general");+ it(+ "should hide the store link when running Metabase Cloud",+ { tags: "@skip" },+ () => {+ H.setupMetabaseCloud();+ cy.visit("/admin/settings/general");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Metabase Admin");- cy.findByLabelText("store icon").should("not.exist");- });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Metabase Admin");+ cy.findByLabelText("store icon").should("not.exist");+ },+ );describe(" > slack settings", () => {it("should present the form and display errors", () => {@@ -331,15 +339,19 @@ describe("scenarios > admin > settings (EE)", () => {});// Unskip when mocking Cloud in Cypress is fixed (#18289)- it.skip("should hide Enterprise page when running Metabase Cloud", () => {- H.setupMetabaseCloud();- cy.visit("/admin/settings/general");+ it(+ "should hide Enterprise page when running Metabase Cloud",+ { tags: "@skip" },+ () => {+ H.setupMetabaseCloud();+ cy.visit("/admin/settings/general");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Site Name");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Enterprise").should("not.exist");- });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Site Name");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Enterprise").should("not.exist");+ },+ );it("should hide the store link when running Metabase EE", () => {cy.visit("/admin/settings/license");@@ -354,9 +366,9 @@ describe("scenarios > admin > settings (EE)", () => {* Disabled and quarantined until we fix the caching issues, and especially:* https://github.com/metabase/metabase/issues/13262*/-describe.skip(+describe("scenarios > admin > settings > cache",- { tags: "@external" },+ { tags: ["@external", "@skip"] },() => {function enableCaching() {cy.findByText("Disabled")diff --git a/e2e/test/scenarios/admin/datamodel/datamodel.cy.spec.ts b/e2e/test/scenarios/admin/datamodel/datamodel.cy.spec.tsindex b062e231ba3..cf388e8e4dc 100644--- a/e2e/test/scenarios/admin/datamodel/datamodel.cy.spec.ts+++ b/e2e/test/scenarios/admin/datamodel/datamodel.cy.spec.ts@@ -753,7 +753,7 @@ describe("scenarios > admin > datamodel", () => {H.queryBuilderHeader().findByText("View-only").should("be.visible");});- it.skip("question with joins (metabase#15947-2)", () => {+ it("question with joins (metabase#15947-2)", { tags: "@skip" }, () => {H.createQuestion({name: "15947",query: {diff --git a/e2e/test/scenarios/admin/troubleshooting.cy.spec.js b/e2e/test/scenarios/admin/troubleshooting.cy.spec.jsindex 0940b4be804..c1d2443778d 100644--- a/e2e/test/scenarios/admin/troubleshooting.cy.spec.js+++ b/e2e/test/scenarios/admin/troubleshooting.cy.spec.js@@ -385,7 +385,7 @@ describe("scenarios > admin > tools > logs", () => {// We need to skip this completely! CI on `master` is almost constantly red.// TODO:// Once the underlying problem with H2 is solved, replace `describe.skip` with `describePremium`.-describe("admin > tools > erroring questions ", { tags: "@quarantine" }, () => {+describe("admin > tools > erroring questions ", { tags: "@skip" }, () => {const TOOLS_ERRORS_URL = "/admin/tools/errors";// The filter is required but doesn't have a default value setconst brokenQuestionDetails = {@@ -428,7 +428,7 @@ describe("admin > tools > erroring questions ", { tags: "@quarantine" }, () => {});}- describe.skip("when feature enabled", () => {+ describe("when feature enabled", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -438,17 +438,21 @@ describe("admin > tools > erroring questions ", { tags: "@quarantine" }, () => {});describe("without broken questions", () => {- it.skip('should render the "Tools" tab and navigate to the "Erroring Questions" by clicking on it', () => {- // The sidebar has been taken out, because it looks awkward when there's only one elem on it: put it back in when there's more than one- cy.visit("/admin");-- cy.get("nav").contains("Tools").click();-- cy.location("pathname").should("eq", TOOLS_ERRORS_URL);- cy.findByRole("link", { name: "Erroring Questions" })- .should("have.attr", "href")- .and("eq", TOOLS_ERRORS_URL);- });+ it(+ 'should render the "Tools" tab and navigate to the "Erroring Questions" by clicking on it',+ { tags: "@skip" },+ () => {+ // The sidebar has been taken out, because it looks awkward when there's only one elem on it: put it back in when there's more than one+ cy.visit("/admin");++ cy.get("nav").contains("Tools").click();++ cy.location("pathname").should("eq", TOOLS_ERRORS_URL);+ cy.findByRole("link", { name: "Erroring Questions" })+ .should("have.attr", "href")+ .and("eq", TOOLS_ERRORS_URL);+ },+ );it("should disable search input fields (metabase#18050)", () => {cy.visit(TOOLS_ERRORS_URL);diff --git a/e2e/test/scenarios/binning/binning-options.cy.spec.js b/e2e/test/scenarios/binning/binning-options.cy.spec.jsindex 0313078eeb7..04b30ff502d 100644--- a/e2e/test/scenarios/binning/binning-options.cy.spec.js+++ b/e2e/test/scenarios/binning/binning-options.cy.spec.js@@ -196,23 +196,27 @@ describe("scenarios > binning > binning options", () => {context("via time series footer (metabase#11183)", () => {// TODO: enable again when metabase#35546 is completed- it.skip("should render time series binning options correctly", () => {- H.openTable({ table: ORDERS_ID });-- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Created At").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Distribution").click();-- getTitle("Count by Created At: Month");-- // Check all binning options from the footer- cy.findAllByTestId("select-button-content").contains("Month").click();- getAllOptions({ options: TIME_BUCKETS, isSelected: "Month" });- });+ it(+ "should render time series binning options correctly",+ { tags: "@skip" },+ () => {+ H.openTable({ table: ORDERS_ID });++ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Created At").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Distribution").click();++ getTitle("Count by Created At: Month");++ // Check all binning options from the footer+ cy.findAllByTestId("select-button-content").contains("Month").click();+ getAllOptions({ options: TIME_BUCKETS, isSelected: "Month" });+ },+ );});- context.skip("implicit joins (metabase#16674)", () => {+ context("implicit joins (metabase#16674)", { tags: "@skip" }, () => {it("should work for time series", () => {chooseInitialBinningOption({table: ORDERS_ID,@@ -244,7 +248,7 @@ describe("scenarios > binning > binning options", () => {});});- context.skip("explicit joins (metabase#16675)", () => {+ context("explicit joins (metabase#16675)", { tags: "@skip" }, () => {beforeEach(() => {cy.intercept("POST", "/api/dataset").as("dataset");});diff --git a/e2e/test/scenarios/binning/binning-reproductions.cy.spec.js b/e2e/test/scenarios/binning/binning-reproductions.cy.spec.jsindex 925f17af87d..9d23a03488f 100644--- a/e2e/test/scenarios/binning/binning-reproductions.cy.spec.js+++ b/e2e/test/scenarios/binning/binning-reproductions.cy.spec.js@@ -300,7 +300,7 @@ describe("binning related reproductions", () => {});});- describe.skip("result metadata issues", () => {+ describe("result metadata issues", { tags: "@skip" }, () => {/*** Issues that arise only when we save SQL question without running it first.* It doesn't load the necessary metadata, which results in the wrong binning results.diff --git a/e2e/test/scenarios/collections/permissions.cy.spec.js b/e2e/test/scenarios/collections/permissions.cy.spec.jsindex 6c004f752e6..326c2f6b786 100644--- a/e2e/test/scenarios/collections/permissions.cy.spec.js+++ b/e2e/test/scenarios/collections/permissions.cy.spec.js@@ -100,9 +100,13 @@ describe("collection permissions", () => {duplicate("Orders in a dashboard");});- it.skip("should be able to duplicate the question (metabase#15255)", () => {- duplicate("Orders");- });+ it(+ "should be able to duplicate the question (metabase#15255)",+ { tags: "@skip" },+ () => {+ duplicate("Orders");+ },+ );});describe("archive", () => {diff --git a/e2e/test/scenarios/collections/personal-collections.cy.spec.js b/e2e/test/scenarios/collections/personal-collections.cy.spec.jsindex 91cf8d8c447..288e858f63f 100644--- a/e2e/test/scenarios/collections/personal-collections.cy.spec.js+++ b/e2e/test/scenarios/collections/personal-collections.cy.spec.js@@ -30,21 +30,25 @@ describe("personal collections", () => {* - When the solution for this problem is ready, either adjust the test or completely remove it!*/- it.skip("shouldn't get API response containing all other personal collections when visiting the home page (metabase#24330)", () => {- cy.intercept("GET", "/api/collection/tree*").as("getCollections");-- cy.visit("/");-- cy.wait("@getCollections").then(({ response: { body } }) => {- const personalCollections = body.filter(({ personal_owner_id }) => {- return personal_owner_id !== null;+ it(+ "shouldn't get API response containing all other personal collections when visiting the home page (metabase#24330)",+ { tags: "@skip" },+ () => {+ cy.intercept("GET", "/api/collection/tree*").as("getCollections");++ cy.visit("/");++ cy.wait("@getCollections").then(({ response: { body } }) => {+ const personalCollections = body.filter(({ personal_owner_id }) => {+ return personal_owner_id !== null;+ });++ // Admin can only see their own personal collection, so this list should return only that+ // Loading all other users' personal collections can lead to performance issues!+ expect(personalCollections).to.have.lengthOf(1);});-- // Admin can only see their own personal collection, so this list should return only that- // Loading all other users' personal collections can lead to performance issues!- expect(personalCollections).to.have.lengthOf(1);- });- });+ },+ );it("should see a link to other users' personal collections only if there are other users", () => {cy.intercept("GET", "/api/session/properties", (req) => {diff --git a/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js b/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.jsindex cae0c7ca05c..8fd9f031195 100644--- a/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js+++ b/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js@@ -7,7 +7,7 @@ import { SAMPLE_DATABASE } from "e2e/support/cypress_sample_database";const { PRODUCTS, PRODUCTS_ID, ORDERS, ORDERS_ID, REVIEWS, REVIEWS_ID } =SAMPLE_DATABASE;-describe.skip("issue 12445", { tags: "@external" }, () => {+describe("issue 12445", { tags: ["@external", "@skip"] }, () => {const CC_NAME = "Abbr";beforeEach(() => {@@ -140,9 +140,9 @@ describe("issue 13751", { tags: "@external" }, () => {});});-describe.skip(+describe("postgres > question > custom columns",- { tags: "@external" },+ { tags: ["@external", "@skip"] },() => {const PG_DB_NAME = "QA Postgres12";@@ -728,7 +728,7 @@ describe("issue 24922", () => {});});-describe.skip("issue 25189", () => {+describe("issue 25189", { tags: "@skip" }, () => {const ccTable = "Custom Created";const ccFunction = "Custom Total";@@ -886,7 +886,7 @@ describe("issue 32032", () => {});// broken. see https://github.com/metabase/metabase/issues/55673-describe.skip("issue 42949", () => {+describe("issue 42949", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -1125,17 +1125,21 @@ describe("issue 49882", () => {});// TODO: we no longer have wrapped lines (for now)- it.skip("should allow moving cursor between wrapped lines with arrow up and arrow down keys (metabase#49882-3)", () => {- H.enterCustomColumnDetails({- formula:- 'case([Tax] > 1, case([Total] > 200, [Total], "Nothing"), [Tax]){leftarrow}{leftarrow}{uparrow}x{downarrow}y',- });+ it(+ "should allow moving cursor between wrapped lines with arrow up and arrow down keys (metabase#49882-3)",+ { tags: "@skip" },+ () => {+ H.enterCustomColumnDetails({+ formula:+ 'case([Tax] > 1, case([Total] > 200, [Total], "Nothing"), [Tax]){leftarrow}{leftarrow}{uparrow}x{downarrow}y',+ });- H.CustomExpressionEditor.value().should(- "equal",- 'case([Tax] > 1, xcase([Total] > 200, [Total], "Nothing"), [Tax]y)',- );- });+ H.CustomExpressionEditor.value().should(+ "equal",+ 'case([Tax] > 1, xcase([Total] > 200, [Total], "Nothing"), [Tax]y)',+ );+ },+ );it("should update currently selected suggestion when suggestions list is updated (metabase#49882-4)", () => {const selectProductRating =@@ -1956,7 +1960,7 @@ describe("issue 55687", () => {});// TODO: re-enable this test when we have a fix for metabase/metabase#58371-describe.skip("issue 58371", () => {+describe("issue 58371", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -2069,18 +2073,25 @@ describe("issue 57674", () => {});// TODO: re-enable this test once we have a fix for metabase#61264- it.skip("should show an error when using a case or if expression with mismatched types (metabase#57674)", () => {- H.getNotebookStep("data").button("Custom column").click();+ it(+ "should show an error when using a case or if expression with mismatched types (metabase#57674)",+ { tags: "@skip" },+ () => {+ H.getNotebookStep("data").button("Custom column").click();- H.CustomExpressionEditor.clear();- H.popover().findByText("Types are incompatible.").should("not.exist");+ H.CustomExpressionEditor.clear();+ H.popover().findByText("Types are incompatible.").should("not.exist");- H.CustomExpressionEditor.type('case([Total] > 100, [Created At], "foo")', {- allowFastSet: true,- }).blur();+ H.CustomExpressionEditor.type(+ 'case([Total] > 100, [Created At], "foo")',+ {+ allowFastSet: true,+ },+ ).blur();- H.popover().findByText("Types are incompatible.").should("be.visible");- });+ H.popover().findByText("Types are incompatible.").should("be.visible");+ },+ );it("should not show an error when using a case or if expression with compatible types (metabase#57674)", () => {H.getNotebookStep("data").button("Custom column").click();diff --git a/e2e/test/scenarios/custom-column/custom-column.cy.spec.js b/e2e/test/scenarios/custom-column/custom-column.cy.spec.jsindex 6ff65e599ed..ca246d875fc 100644--- a/e2e/test/scenarios/custom-column/custom-column.cy.spec.js+++ b/e2e/test/scenarios/custom-column/custom-column.cy.spec.js@@ -165,23 +165,30 @@ describe("scenarios > question > custom column", () => {});// flaky test (#19454)- it.skip("should show info popovers when hovering over custom column dimensions in the summarize sidebar", () => {- H.openOrdersTable({ mode: "notebook" });- cy.findByLabelText("Custom column").click();+ it(+ "should show info popovers when hovering over custom column dimensions in the summarize sidebar",+ { tags: "@skip" },+ () => {+ H.openOrdersTable({ mode: "notebook" });+ cy.findByLabelText("Custom column").click();- H.enterCustomColumnDetails({ formula: "1 + 1", name: "Math" });- cy.button("Done").click();+ H.enterCustomColumnDetails({ formula: "1 + 1", name: "Math" });+ cy.button("Done").click();- H.visualize();+ H.visualize();- H.summarize();+ H.summarize();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Group by").parent().findByText("Math").trigger("mouseenter");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Group by")+ .parent()+ .findByText("Math")+ .trigger("mouseenter");- H.popover().contains("Math");- H.popover().contains("No description");- });+ H.popover().contains("Math");+ H.popover().contains("No description");+ },+ );it("can create a custom column with an existing column name", () => {const customFormulas = [@@ -558,25 +565,29 @@ describe("scenarios > question > custom column", () => {H.CustomExpressionEditor.value().should("equal", "Sum([MyCC \\[2027\\]])");});- it.skip("should work with `isNull` function (metabase#15922)", () => {- H.openOrdersTable({ mode: "notebook" });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Custom column").click();- H.enterCustomColumnDetails({- formula: "isnull([Discount])",- name: "No discount",- });- cy.button("Done").click();+ it(+ "should work with `isNull` function (metabase#15922)",+ { tags: "@skip" },+ () => {+ H.openOrdersTable({ mode: "notebook" });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Custom column").click();+ H.enterCustomColumnDetails({+ formula: "isnull([Discount])",+ name: "No discount",+ });+ cy.button("Done").click();- H.visualize((response) => {- expect(response.body.error).to.not.exist;- });+ H.visualize((response) => {+ expect(response.body.error).to.not.exist;+ });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("37.65");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("No discount");- });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("37.65");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("No discount");+ },+ );it("should be able to add a date range filter to a custom column", () => {H.visitQuestionAdhoc({@@ -843,16 +854,20 @@ describe("scenarios > question > custom column", () => {});// TODO: fixme!- it.skip("should render custom expression helper near the custom expression field", () => {- H.openOrdersTable({ mode: "notebook" });- cy.findByLabelText("Custom column").click();+ it(+ "should render custom expression helper near the custom expression field",+ { tags: "@skip" },+ () => {+ H.openOrdersTable({ mode: "notebook" });+ cy.findByLabelText("Custom column").click();- H.popover().within(() => {- H.enterCustomColumnDetails({ formula: "floor" });+ H.popover().within(() => {+ H.enterCustomColumnDetails({ formula: "floor" });- H.checkExpressionEditorHelperPopoverPosition();- });- });+ H.checkExpressionEditorHelperPopoverPosition();+ });+ },+ );it("should allow to use `if` function", () => {H.openProductsTable({ mode: "notebook" });diff --git a/e2e/test/scenarios/dashboard-cards/dashboard-card-reproductions.cy.spec.js b/e2e/test/scenarios/dashboard-cards/dashboard-card-reproductions.cy.spec.jsindex 4585465542c..98bc0309f71 100644--- a/e2e/test/scenarios/dashboard-cards/dashboard-card-reproductions.cy.spec.js+++ b/e2e/test/scenarios/dashboard-cards/dashboard-card-reproductions.cy.spec.js@@ -479,32 +479,36 @@ describe("issue 17160", () => {assertMultipleValuesFilterState();});- it.skip("should pass multiple filter values to public questions and dashboards (metabase#17160-2)", () => {- // FIXME: setup public dashboards- setup();+ it(+ "should pass multiple filter values to public questions and dashboards (metabase#17160-2)",+ { tags: "@skip" },+ () => {+ // FIXME: setup public dashboards+ setup();- // 1. Check click behavior connected to a public question- visitPublicSourceDashboard();+ // 1. Check click behavior connected to a public question+ visitPublicSourceDashboard();- cy.findAllByText("click-behavior-question-label").eq(0).click();+ cy.findAllByText("click-behavior-question-label").eq(0).click();- cy.url().should("include", "/public/question");+ cy.url().should("include", "/public/question");- assertMultipleValuesFilterState();+ assertMultipleValuesFilterState();- // 2. Check click behavior connected to a publicdashboard- visitPublicSourceDashboard();+ // 2. Check click behavior connected to a publicdashboard+ visitPublicSourceDashboard();- cy.findAllByText("click-behavior-dashboard-label").eq(0).click();+ cy.findAllByText("click-behavior-dashboard-label").eq(0).click();- cy.url().should("include", "/public/dashboard");- cy.location("search").should("eq", "?category=Doohickey&category=Gadget");+ cy.url().should("include", "/public/dashboard");+ cy.location("search").should("eq", "?category=Doohickey&category=Gadget");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText(TARGET_DASHBOARD_NAME);+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText(TARGET_DASHBOARD_NAME);- assertMultipleValuesFilterState();- });+ assertMultipleValuesFilterState();+ },+ );});describe("issue 18454", () => {diff --git a/e2e/test/scenarios/dashboard-cards/dashboard-drill.cy.spec.js b/e2e/test/scenarios/dashboard-cards/dashboard-drill.cy.spec.jsindex c7cccb6cd56..bcf6a540233 100644--- a/e2e/test/scenarios/dashboard-cards/dashboard-drill.cy.spec.js+++ b/e2e/test/scenarios/dashboard-cards/dashboard-drill.cy.spec.js@@ -304,7 +304,7 @@ describe("scenarios > dashboard > dashboard drill", () => {});// This was flaking. Example: https://dashboard.cypress.io/projects/a394u1/runs/2109/test-results/91a15b66-4b80-40bf-b569-de28abe21f42- it.skip("should handle cross-filter on a table", () => {+ it("should handle cross-filter on a table", { tags: "@skip" }, () => {createDashboardWithQuestion({}, (dashboardId) =>H.visitDashboard(dashboardId),);diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-1-stage.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-1-stage.cy.spec.tsindex 0a3d23fbaa6..53ec0760178 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-1-stage.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-1-stage.cy.spec.ts@@ -395,7 +395,7 @@ describe("scenarios > dashboard > filters > query stages", () => {);});- it.skip("allows to map to all relevant columns", () => {+ it("allows to map to all relevant columns", { tags: "@skip" }, () => {H.editDashboard();cy.log("## date columns");@@ -544,7 +544,7 @@ describe("scenarios > dashboard > filters > query stages", () => {);});- it.skip("allows to map to all relevant columns", () => {+ it("allows to map to all relevant columns", { tags: "@skip" }, () => {H.editDashboard();cy.log("## date columns");diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-1.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-1.cy.spec.tsindex cf964d9d497..4f05df4e9ab 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-1.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-1.cy.spec.ts@@ -37,7 +37,7 @@ describe("scenarios > dashboard > filters > query stages", () => {);});- it.skip("allows to map to all relevant columns", () => {+ it("allows to map to all relevant columns", { tags: "@skip" }, () => {H.editDashboard();cy.log("## date columns");diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-2.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-2.cy.spec.tsindex ffb004cdc6a..8bf21bdbc13 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-2.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-2.cy.spec.ts@@ -254,21 +254,25 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage implicit join (joined data source)", () => {- QSHelpers.setup1stStageImplicitJoinFromJoinFilter();-- QSHelpers.verifyDashcardCellValues({- dashcardIndex: 0,- values: ["4,447", "17,714"],- });-- QSHelpers.goBackToDashboard();-- QSHelpers.verifyDashcardCellValues({- dashcardIndex: 1,- values: ["4,447", "17,714"],- });- });+ it(+ "1st stage implicit join (joined data source)",+ { tags: "@skip" },+ () => {+ QSHelpers.setup1stStageImplicitJoinFromJoinFilter();++ QSHelpers.verifyDashcardCellValues({+ dashcardIndex: 0,+ values: ["4,447", "17,714"],+ });++ QSHelpers.goBackToDashboard();++ QSHelpers.verifyDashcardCellValues({+ dashcardIndex: 1,+ values: ["4,447", "17,714"],+ });+ },+ );it("1st stage custom column", () => {QSHelpers.setup1stStageCustomColumnFilter();@@ -303,7 +307,7 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage breakout", () => {+ it("1st stage breakout", { tags: "@skip" }, () => {QSHelpers.setup1stStageBreakoutFilter();QSHelpers.verifyDashcardCellValues({diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-3.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-3.cy.spec.tsindex a89b8839c84..3b543f4eb95 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-3.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-3.cy.spec.ts@@ -288,23 +288,27 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage implicit join (joined data source)", () => {- QSHelpers.setup1stStageImplicitJoinFromJoinFilter();-- QSHelpers.verifyDashcardRowsCount({- dashcardIndex: 0,- dashboardCount: 1077,- queryBuilderCount: "Showing 1,077 rows",- });-- QSHelpers.goBackToDashboard();-- QSHelpers.verifyDashcardRowsCount({- dashcardIndex: 1,- dashboardCount: 1077,- queryBuilderCount: "Showing 1,077 rows",- });- });+ it(+ "1st stage implicit join (joined data source)",+ { tags: "@skip" },+ () => {+ QSHelpers.setup1stStageImplicitJoinFromJoinFilter();++ QSHelpers.verifyDashcardRowsCount({+ dashcardIndex: 0,+ dashboardCount: 1077,+ queryBuilderCount: "Showing 1,077 rows",+ });++ QSHelpers.goBackToDashboard();++ QSHelpers.verifyDashcardRowsCount({+ dashcardIndex: 1,+ dashboardCount: 1077,+ queryBuilderCount: "Showing 1,077 rows",+ });+ },+ );it("1st stage custom column", () => {QSHelpers.setup1stStageCustomColumnFilter();@@ -343,7 +347,7 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage breakout", () => {+ it("1st stage breakout", { tags: "@skip" }, () => {QSHelpers.setup1stStageBreakoutFilter();QSHelpers.verifyDashcardRowsCount({diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-4.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-4.cy.spec.tsindex 0520390d374..73ab79b7805 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-4.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-2-stage-4.cy.spec.ts@@ -331,23 +331,27 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage implicit join (joined data source)", () => {- QSHelpers.setup1stStageImplicitJoinFromJoinFilter();-- QSHelpers.verifyDashcardRowsCount({- dashcardIndex: 0,- dashboardCount: 1077,- queryBuilderCount: "Showing 1,077 rows",- });+ it(+ "1st stage implicit join (joined data source)",+ { tags: "@skip" },+ () => {+ QSHelpers.setup1stStageImplicitJoinFromJoinFilter();++ QSHelpers.verifyDashcardRowsCount({+ dashcardIndex: 0,+ dashboardCount: 1077,+ queryBuilderCount: "Showing 1,077 rows",+ });- QSHelpers.goBackToDashboard();+ QSHelpers.goBackToDashboard();- QSHelpers.verifyDashcardRowsCount({- dashcardIndex: 1,- dashboardCount: 1077,- queryBuilderCount: "Showing 1,077 rows",- });- });+ QSHelpers.verifyDashcardRowsCount({+ dashcardIndex: 1,+ dashboardCount: 1077,+ queryBuilderCount: "Showing 1,077 rows",+ });+ },+ );it("1st stage custom column", () => {QSHelpers.setup1stStageCustomColumnFilter();@@ -386,7 +390,7 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage breakout", () => {+ it("1st stage breakout", { tags: "@skip" }, () => {QSHelpers.setup1stStageBreakoutFilter();QSHelpers.verifyDashcardRowsCount({diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.tsindex 6bf9b8ed657..380946f1833 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts@@ -276,21 +276,25 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage implicit join (joined data source)", () => {- QSHelpers.setup1stStageImplicitJoinFromJoinFilter();-- QSHelpers.verifyDashcardCellValues({- dashcardIndex: 0,- values: ["1,077"],- });-- QSHelpers.goBackToDashboard();-- QSHelpers.verifyDashcardCellValues({- dashcardIndex: 1,- values: ["1,077"],- });- });+ it(+ "1st stage implicit join (joined data source)",+ { tags: "@skip" },+ () => {+ QSHelpers.setup1stStageImplicitJoinFromJoinFilter();++ QSHelpers.verifyDashcardCellValues({+ dashcardIndex: 0,+ values: ["1,077"],+ });++ QSHelpers.goBackToDashboard();++ QSHelpers.verifyDashcardCellValues({+ dashcardIndex: 1,+ values: ["1,077"],+ });+ },+ );it("1st stage custom column", () => {QSHelpers.setup1stStageCustomColumnFilter();@@ -325,7 +329,7 @@ describe("scenarios > dashboard > filters > query stages", () => {});// TODO: https://github.com/metabase/metabase/issues/46774- it.skip("1st stage breakout", () => {+ it("1st stage breakout", { tags: "@skip" }, () => {QSHelpers.setup1stStageBreakoutFilter();QSHelpers.verifyDashcardCellValues({diff --git a/e2e/test/scenarios/dashboard-filters/dashboard-filters-auto-apply.cy.spec.js b/e2e/test/scenarios/dashboard-filters/dashboard-filters-auto-apply.cy.spec.jsindex 5e8b6e08e20..b7c5d658e8e 100644--- a/e2e/test/scenarios/dashboard-filters/dashboard-filters-auto-apply.cy.spec.js+++ b/e2e/test/scenarios/dashboard-filters/dashboard-filters-auto-apply.cy.spec.js@@ -289,129 +289,157 @@ describe(});});- it.skip("should display a toast when a dashboard takes longer than 15s to load even without parameter values (but has parameters with default values)", () => {- cy.clock();- openSlowDashboard();+ it(+ "should display a toast when a dashboard takes longer than 15s to load even without parameter values (but has parameters with default values)",+ { tags: "@skip" },+ () => {+ cy.clock();+ openSlowDashboard();- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().within(() => {- cy.findByText(TOAST_MESSAGE).should("be.visible");- cy.button("Turn off").click();- cy.wait("@updateDashboard");- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().within(() => {+ cy.findByText(TOAST_MESSAGE).should("be.visible");+ cy.button("Turn off").click();+ cy.wait("@updateDashboard");+ });- H.openDashboardSettingsSidebar();- H.sidesheet()- .findByLabelText(filterToggleLabel)- .should("not.be.checked");- // Gadget- const filterDefaultValue = FILTER_WITH_DEFAULT_VALUE.default[0];- H.filterWidget().findByText(filterDefaultValue).should("be.visible");- H.getDashboardCard().within(() => {- H.assertTableRowsCount(53);- });- });+ H.openDashboardSettingsSidebar();+ H.sidesheet()+ .findByLabelText(filterToggleLabel)+ .should("not.be.checked");+ // Gadget+ const filterDefaultValue = FILTER_WITH_DEFAULT_VALUE.default[0];+ H.filterWidget().findByText(filterDefaultValue).should("be.visible");+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(53);+ });+ },+ );- it.skip("should not display the toast when we clear out parameter default value", () => {- cy.clock();- openSlowDashboard({ [FILTER_WITH_DEFAULT_VALUE.slug]: null });+ it(+ "should not display the toast when we clear out parameter default value",+ { tags: "@skip" },+ () => {+ cy.clock();+ openSlowDashboard({ [FILTER_WITH_DEFAULT_VALUE.slug]: null });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");- H.getDashboardCard().within(() => {- H.assertTableRowsCount(200);- });- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(200);+ });+ },+ );});describe("auto-apply filter toast", () => {- it.skip("should display a toast when a dashboard takes longer than 15s to load", () => {- cy.clock();- createDashboard();- openSlowDashboard({ [FILTER.slug]: "Gadget" });+ it(+ "should display a toast when a dashboard takes longer than 15s to load",+ { tags: "@skip" },+ () => {+ cy.clock();+ createDashboard();+ openSlowDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().within(() => {- cy.findByText(TOAST_MESSAGE).should("be.visible");- cy.button("Turn off").click();- cy.wait("@updateDashboard");- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().within(() => {+ cy.findByText(TOAST_MESSAGE).should("be.visible");+ cy.button("Turn off").click();+ cy.wait("@updateDashboard");+ });- H.openDashboardSettingsSidebar();- H.sidesheet()- .findByLabelText(filterToggleLabel)- .should("not.be.checked");- H.closeDashboardSettingsSidebar();- H.filterWidget().findByText("Gadget").should("be.visible");- H.getDashboardCard().within(() => {- H.assertTableRowsCount(53);- });- });+ H.openDashboardSettingsSidebar();+ H.sidesheet()+ .findByLabelText(filterToggleLabel)+ .should("not.be.checked");+ H.closeDashboardSettingsSidebar();+ H.filterWidget().findByText("Gadget").should("be.visible");+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(53);+ });+ },+ );- it.skip("should display the toast indefinitely unless dismissing manually", () => {- cy.clock();- createDashboard();- openSlowDashboard({ [FILTER.slug]: "Gadget" });+ it(+ "should display the toast indefinitely unless dismissing manually",+ { tags: "@skip" },+ () => {+ cy.clock();+ createDashboard();+ openSlowDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().findByText(TOAST_MESSAGE).should("be.visible");+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().findByText(TOAST_MESSAGE).should("be.visible");- cy.tick(100 * TOAST_TIMEOUT);- H.undoToast().findByText(TOAST_MESSAGE).should("be.visible");+ cy.tick(100 * TOAST_TIMEOUT);+ H.undoToast().findByText(TOAST_MESSAGE).should("be.visible");- H.undoToast().icon("close").click();- H.undoToast().should("not.exist");- });+ H.undoToast().icon("close").click();+ H.undoToast().should("not.exist");+ },+ );- it.skip("should not display the toast when auto applying filters is disabled", () => {- cy.clock();- createDashboard({ dashboardDetails: { auto_apply_filters: false } });- openSlowDashboard({ [FILTER.slug]: "Gadget" });+ it(+ "should not display the toast when auto applying filters is disabled",+ { tags: "@skip" },+ () => {+ cy.clock();+ createDashboard({ dashboardDetails: { auto_apply_filters: false } });+ openSlowDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");- H.filterWidget().findByText("Gadget").should("be.visible");- H.getDashboardCard().within(() => {- H.assertTableRowsCount(53);- });- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");+ H.filterWidget().findByText("Gadget").should("be.visible");+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(53);+ });+ },+ );- it.skip("should not display the toast if there are no parameter values", () => {- cy.clock();- createDashboard();- openSlowDashboard();+ it(+ "should not display the toast if there are no parameter values",+ { tags: "@skip" },+ () => {+ cy.clock();+ createDashboard();+ openSlowDashboard();- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");+ },+ );- it.skip("should not display the same toast twice for a dashboard", () => {- cy.clock();- createDashboard();- openSlowDashboard({ [FILTER.slug]: "Gadget" });+ it(+ "should not display the same toast twice for a dashboard",+ { tags: "@skip" },+ () => {+ cy.clock();+ createDashboard();+ openSlowDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().within(() => {- cy.button("Turn off").should("be.visible");- cy.icon("close").click();- });- H.filterWidget().findByText("Gadget").click();- H.popover().within(() => {- cy.findByText("Widget").click();- cy.findByText("Update filter").click();- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().within(() => {+ cy.button("Turn off").should("be.visible");+ cy.icon("close").click();+ });+ H.filterWidget().findByText("Gadget").click();+ H.popover().within(() => {+ cy.findByText("Widget").click();+ cy.findByText("Update filter").click();+ });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");+ },+ );});describe("no collection curate permission", () => {@@ -429,14 +457,18 @@ describe(H.popover().findByText("Edit settings").should("not.exist");});- it.skip("should not display a toast even when a dashboard takes longer than 15s to load", () => {- cy.clock();- openSlowDashboard({ [FILTER.slug]: "Gadget" });+ it(+ "should not display a toast even when a dashboard takes longer than 15s to load",+ { tags: "@skip" },+ () => {+ cy.clock();+ openSlowDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");- });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");+ },+ );});describe("embeddings", () => {@@ -571,62 +603,70 @@ describe(});});- it.skip("should display a toast when a dashboard takes longer than 15s to load", () => {- createDashboard();- // Not sure why I need to pass a date in this case, but it doesn't work without it.- cy.clock(Date.now());- openSlowFullAppEmbeddingDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().within(() => {- cy.findByText(TOAST_MESSAGE).should("be.visible");- cy.button("Turn off").click();- cy.wait("@updateDashboard");- });-- // In embedding we'll load bookmark after the dashboard is loaded, it's the opposite in normal app because bookmark is cached from somewhere else.- // And somehow, dashboard card query will be completed before the dashboard even start to load, and in entity loader it uses `setTimeout`,- // so to make sure callback in `setTimeout` is called, we need to advance the clock using cy.tick().- cy.tick();+ it(+ "should display a toast when a dashboard takes longer than 15s to load",+ { tags: "@skip" },+ () => {+ createDashboard();+ // Not sure why I need to pass a date in this case, but it doesn't work without it.+ cy.clock(Date.now());+ openSlowFullAppEmbeddingDashboard({ [FILTER.slug]: "Gadget" });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().within(() => {+ cy.findByText(TOAST_MESSAGE).should("be.visible");+ cy.button("Turn off").click();+ cy.wait("@updateDashboard");+ });- H.openDashboardSettingsSidebar();- H.sidesheet()- .findByLabelText(filterToggleLabel)- .should("not.be.checked");- H.filterWidget().findByText("Gadget").should("be.visible");+ // In embedding we'll load bookmark after the dashboard is loaded, it's the opposite in normal app because bookmark is cached from somewhere else.+ // And somehow, dashboard card query will be completed before the dashboard even start to load, and in entity loader it uses `setTimeout`,+ // so to make sure callback in `setTimeout` is called, we need to advance the clock using cy.tick().+ cy.tick();- H.getDashboardCard().within(() => {- H.assertTableRowsCount(53);- });+ H.openDashboardSettingsSidebar();+ H.sidesheet()+ .findByLabelText(filterToggleLabel)+ .should("not.be.checked");+ H.filterWidget().findByText("Gadget").should("be.visible");- // Card result should be updated after manually updating the filter- H.filterWidget().icon("close").click();- H.applyFilterButton().should("be.visible").click();+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(53);+ });- H.getDashboardCard().within(() => {- H.assertTableRowsCount(200);- });- });+ // Card result should be updated after manually updating the filter+ H.filterWidget().icon("close").click();+ H.applyFilterButton().should("be.visible").click();- it.skip("should not display a toast when a dashboard takes longer than 15s to load if users have no write access to a dashboard", () => {- createDashboard();- cy.signIn("readonly");- // Not sure why I need to pass a date in this case, but it doesn't work without it.- cy.clock(Date.now());- openSlowFullAppEmbeddingDashboard({ [FILTER.slug]: "Gadget" });- cy.tick(TOAST_TIMEOUT);- cy.wait("@cardQuery");- H.undoToast().should("not.exist");-- // In embedding we'll load bookmark after the dashboard is loaded, it's the opposite in normal app because bookmark is cached from somewhere else.- // And somehow, dashboard card query will be completed before the dashboard even start to load, and in entity loader it uses `setTimeout`,- // so to make sure callback in `setTimeout` is called, we need to advance the clock using cy.tick().- cy.tick();+ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(200);+ });+ },+ );- H.getDashboardCard().within(() => {- H.assertTableRowsCount(53);- });- });+ it(+ "should not display a toast when a dashboard takes longer than 15s to load if users have no write access to a dashboard",+ { tags: "@skip" },+ () => {+ createDashboard();+ cy.signIn("readonly");+ // Not sure why I need to pass a date in this case, but it doesn't work without it.+ cy.clock(Date.now());+ openSlowFullAppEmbeddingDashboard({ [FILTER.slug]: "Gadget" });+ cy.tick(TOAST_TIMEOUT);+ cy.wait("@cardQuery");+ H.undoToast().should("not.exist");++ // In embedding we'll load bookmark after the dashboard is loaded, it's the opposite in normal app because bookmark is cached from somewhere else.+ // And somehow, dashboard card query will be completed before the dashboard even start to load, and in entity loader it uses `setTimeout`,+ // so to make sure callback in `setTimeout` is called, we need to advance the clock using cy.tick().+ cy.tick();++ H.getDashboardCard().within(() => {+ H.assertTableRowsCount(53);+ });+ },+ );});});},diff --git a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.jsindex 03eff8842d1..2cc2fa68a5e 100644--- a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js+++ b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js@@ -2013,7 +2013,7 @@ describe("Issue 46337", () => {// TODO: unskip when metabase#46337 is fixed// See: https://github.com/metabase/metabase/issues/46337- it.skip("should (metabase#46337)", () => {+ it("should (metabase#46337)", { tags: "@skip" }, () => {cy.log("ensure the dashcards render data not errors");cy.findByTestId("dashboard-grid").within(() => {diff --git a/e2e/test/scenarios/dashboard/dashboard.cy.spec.js b/e2e/test/scenarios/dashboard/dashboard.cy.spec.jsindex b8862777999..ee15fc56d6b 100644--- a/e2e/test/scenarios/dashboard/dashboard.cy.spec.js+++ b/e2e/test/scenarios/dashboard/dashboard.cy.spec.js@@ -1543,45 +1543,51 @@ describe("LOCAL TESTING ONLY > dashboard", () => {* - Then start the server and Cypress tests*/- it.skip("dashboard filter should not show placeholder for translated languages (metabase#15694)", () => {- cy.request("GET", "/api/user/current").then(({ body: { id: USER_ID } }) => {- cy.request("PUT", `/api/user/${USER_ID}`, { locale: "fr" });- });- H.createQuestionAndDashboard({- questionDetails: {- name: "15694",- query: { "source-table": PEOPLE_ID },- },- dashboardDetails: {- parameters: [- {- name: "Location",- slug: "location",- id: "5aefc725",- type: "string/=",- sectionId: "location",- },- ],- },- }).then(({ body: { card_id, dashboard_id } }) => {- H.addOrUpdateDashboardCard({- card_id,- dashboard_id,- card: {- parameter_mappings: [+ it(+ "dashboard filter should not show placeholder for translated languages (metabase#15694)",+ { tags: "@skip" },+ () => {+ cy.request("GET", "/api/user/current").then(+ ({ body: { id: USER_ID } }) => {+ cy.request("PUT", `/api/user/${USER_ID}`, { locale: "fr" });+ },+ );+ H.createQuestionAndDashboard({+ questionDetails: {+ name: "15694",+ query: { "source-table": PEOPLE_ID },+ },+ dashboardDetails: {+ parameters: [{- parameter_id: "5aefc725",- card_id,- target: ["dimension", ["field", PEOPLE.STATE, null]],+ name: "Location",+ slug: "location",+ id: "5aefc725",+ type: "string/=",+ sectionId: "location",},],},- });+ }).then(({ body: { card_id, dashboard_id } }) => {+ H.addOrUpdateDashboardCard({+ card_id,+ dashboard_id,+ card: {+ parameter_mappings: [+ {+ parameter_id: "5aefc725",+ card_id,+ target: ["dimension", ["field", PEOPLE.STATE, null]],+ },+ ],+ },+ });- cy.visit(`/dashboard/${dashboard_id}?location=AK&location=CA`);- H.filterWidget().contains(/\{0\}/).should("not.exist");- });- });+ cy.visit(`/dashboard/${dashboard_id}?location=AK&location=CA`);+ H.filterWidget().contains(/\{0\}/).should("not.exist");+ });+ },+ );});describe("scenarios > dashboard > caching", () => {diff --git a/e2e/test/scenarios/dashboard/visualizer/filters.cy.spec.ts b/e2e/test/scenarios/dashboard/visualizer/filters.cy.spec.tsindex 2ecd300cd8f..deadd012b24 100644--- a/e2e/test/scenarios/dashboard/visualizer/filters.cy.spec.ts+++ b/e2e/test/scenarios/dashboard/visualizer/filters.cy.spec.ts@@ -29,46 +29,50 @@ describe("scenarios > dashboard > visualizer > filters", () => {});// TODO those two datasets should be compatible with each other- it.skip("should create and update a dashcard with 'Visualize another way' button", () => {- H.createDashboard().then(({ body: { id: dashboardId } }) => {- H.visitDashboard(dashboardId);- });+ it(+ "should create and update a dashcard with 'Visualize another way' button",+ { tags: "@skip" },+ () => {+ H.createDashboard().then(({ body: { id: dashboardId } }) => {+ H.visitDashboard(dashboardId);+ });- H.editDashboard();- H.openQuestionsSidebar();- H.clickVisualizeAnotherWay(PRODUCTS_COUNT_BY_CATEGORY.name);+ H.editDashboard();+ H.openQuestionsSidebar();+ H.clickVisualizeAnotherWay(PRODUCTS_COUNT_BY_CATEGORY.name);- H.modal().within(() => {- H.switchToAddMoreData();- H.selectDataset(PRODUCTS_AVERAGE_BY_CATEGORY.name);+ H.modal().within(() => {+ H.switchToAddMoreData();+ H.selectDataset(PRODUCTS_AVERAGE_BY_CATEGORY.name);- H.assertWellItemsCount({- vertical: 2,+ H.assertWellItemsCount({+ vertical: 2,+ });});- });- H.saveDashcardVisualizerModal({ mode: "create" });+ H.saveDashcardVisualizerModal({ mode: "create" });- H.setFilter("Text or Category", "Is");+ H.setFilter("Text or Category", "Is");- // Doing it twice to populate the two filters- H.selectDashboardFilter(H.getDashboardCard(0), "Category");- H.selectDashboardFilter(H.getDashboardCard(0), "Category");+ // Doing it twice to populate the two filters+ H.selectDashboardFilter(H.getDashboardCard(0), "Category");+ H.selectDashboardFilter(H.getDashboardCard(0), "Category");- H.saveDashboard();+ H.saveDashboard();- H.getDashboardCard(0).within(() => {- cy.findByText("Doohickey").should("exist");- });+ H.getDashboardCard(0).within(() => {+ cy.findByText("Doohickey").should("exist");+ });- H.filterWidget().contains("Text").click();- H.popover().within(() => {- cy.findByText("Gadget").click();- cy.button("Add filter").click();- });+ H.filterWidget().contains("Text").click();+ H.popover().within(() => {+ cy.findByText("Gadget").click();+ cy.button("Add filter").click();+ });- H.getDashboardCard(0).within(() => {- cy.findByText("Doohickey").should("not.exist");- });- });+ H.getDashboardCard(0).within(() => {+ cy.findByText("Doohickey").should("not.exist");+ });+ },+ );});diff --git a/e2e/test/scenarios/embedding/embedding-reproductions.cy.spec.js b/e2e/test/scenarios/embedding/embedding-reproductions.cy.spec.jsindex 9e9468074c6..ac69f7619d7 100644--- a/e2e/test/scenarios/embedding/embedding-reproductions.cy.spec.js+++ b/e2e/test/scenarios/embedding/embedding-reproductions.cy.spec.js@@ -5,7 +5,7 @@ import { defer } from "metabase/lib/promise";const { PRODUCTS, PRODUCTS_ID, ORDERS, ORDERS_ID } = SAMPLE_DATABASE;-describe.skip("issue 15860", () => {+describe("issue 15860", { tags: "@skip" }, () => {const q1IdFilter = {name: "Q1 ID",slug: "q1_id",@@ -974,7 +974,7 @@ describe("issue 40660", () => {});// Skipped since it does not make sense when CSP is disabled-describe.skip("issue 49142", () => {+describe("issue 49142", { tags: "@skip" }, () => {const questionDetails = {name: "Products",query: { "source-table": PRODUCTS_ID, limit: 2 },diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-experience.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-experience.cy.spec.tsindex 4f1c448ef43..9fe85da6213 100644--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-experience.cy.spec.ts+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-experience.cy.spec.ts@@ -73,7 +73,7 @@ H.describeWithSnowplow(suiteTitle, () => {});});- it.skip("shows exploration template when selected", () => {+ it("shows exploration template when selected", { tags: "@skip" }, () => {visitNewEmbedPage();getEmbedSidebar().findByText("Exploration").click();@@ -114,38 +114,46 @@ H.describeWithSnowplow(suiteTitle, () => {});});- it.skip("shows question of id=1 when activity log is empty and chart is selected", () => {- visitNewEmbedPage();- cy.wait("@emptyRecentItems");+ it(+ "shows question of id=1 when activity log is empty and chart is selected",+ { tags: "@skip" },+ () => {+ visitNewEmbedPage();+ cy.wait("@emptyRecentItems");- getEmbedSidebar().findByText("Chart").click();+ getEmbedSidebar().findByText("Chart").click();- H.expectUnstructuredSnowplowEvent({- event: "embed_wizard_experience_selected",- event_detail: "chart",- });+ H.expectUnstructuredSnowplowEvent({+ event: "embed_wizard_experience_selected",+ event_detail: "chart",+ });- H.waitForSimpleEmbedIframesToLoad();+ H.waitForSimpleEmbedIframesToLoad();- H.getSimpleEmbedIframeContent().within(() => {- cy.log("question title of id=1 is visible");- cy.findByText("Query log").should("be.visible");- });- });+ H.getSimpleEmbedIframeContent().within(() => {+ cy.log("question title of id=1 is visible");+ cy.findByText("Query log").should("be.visible");+ });+ },+ );});// TODO: fix this flaky test- it.skip("localizes the iframe preview when ?locale is passed", () => {- visitNewEmbedPage({ locale: "fr" });+ it(+ "localizes the iframe preview when ?locale is passed",+ { tags: "@skip" },+ () => {+ visitNewEmbedPage({ locale: "fr" });- // TODO: update this test once "Exploration" is localized in french.- getEmbedSidebar().findByText("Exploration").click();+ // TODO: update this test once "Exploration" is localized in french.+ getEmbedSidebar().findByText("Exploration").click();- H.waitForSimpleEmbedIframesToLoad();+ H.waitForSimpleEmbedIframesToLoad();- H.getSimpleEmbedIframeContent().within(() => {- cy.log("data picker is localized");- cy.findByText("Choisissez vos données de départ").should("be.visible");- });- });+ H.getSimpleEmbedIframeContent().within(() => {+ cy.log("data picker is localized");+ cy.findByText("Choisissez vos données de départ").should("be.visible");+ });+ },+ );});diff --git a/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js b/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.jsindex 7236491cc49..3771622c2a4 100644--- a/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js+++ b/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js@@ -409,62 +409,66 @@ describe("issue 12985 > dashboard filter dropdown/search", () => {cy.findByText("Ergonomic Silk Coat");});- it.skip("should work for aggregated questions (metabase#12985-2)", () => {- const questionDetails = {- name: "12985-v2",- query: {- "source-query": {- "source-table": PRODUCTS_ID,- aggregation: [["count"]],- breakout: [["field", PRODUCTS.CATEGORY, null]],+ it(+ "should work for aggregated questions (metabase#12985-2)",+ { tags: "@skip" },+ () => {+ const questionDetails = {+ name: "12985-v2",+ query: {+ "source-query": {+ "source-table": PRODUCTS_ID,+ aggregation: [["count"]],+ breakout: [["field", PRODUCTS.CATEGORY, null]],+ },+ filter: [">", ["field", "count", { "base-type": "type/Integer" }], 1],},- filter: [">", ["field", "count", { "base-type": "type/Integer" }], 1],- },- };+ };- H.createQuestionAndDashboard({ questionDetails, dashboardDetails }).then(- ({ body: { id, card_id, dashboard_id } }) => {- cy.log("Connect dashboard filter to the aggregated card");+ H.createQuestionAndDashboard({ questionDetails, dashboardDetails }).then(+ ({ body: { id, card_id, dashboard_id } }) => {+ cy.log("Connect dashboard filter to the aggregated card");- cy.request("PUT", `/api/dashboard/${dashboard_id}`, {- dashcards: [- {- id,- card_id,- row: 0,- col: 0,- size_x: 11,- size_y: 6,- series: [],- visualization_settings: {},- // Connect filter to the card- parameter_mappings: [- {- parameter_id: categoryFilter.id,- card_id,- target: [- "dimension",- ["field", "CATEGORY", { "base-type": "type/Text" }],- ],- },- ],- },- ],- });+ cy.request("PUT", `/api/dashboard/${dashboard_id}`, {+ dashcards: [+ {+ id,+ card_id,+ row: 0,+ col: 0,+ size_x: 11,+ size_y: 6,+ series: [],+ visualization_settings: {},+ // Connect filter to the card+ parameter_mappings: [+ {+ parameter_id: categoryFilter.id,+ card_id,+ target: [+ "dimension",+ ["field", "CATEGORY", { "base-type": "type/Text" }],+ ],+ },+ ],+ },+ ],+ });- H.visitDashboard(dashboard_id);- },- );+ H.visitDashboard(dashboard_id);+ },+ );- H.filterWidget().contains("Category").click();- // It will fail at this point until the issue is fixed because popover never appears- H.popover().contains("Gadget").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Add filter").click();- cy.url().should("contain", "?category=Gadget");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Ergonomic Silk Coat");- });+ H.filterWidget().contains("Category").click();+ // It will fail at this point until the issue is fixed because popover never appears+ H.popover().contains("Gadget").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Add filter").click();+ cy.url().should("contain", "?category=Gadget");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Ergonomic Silk Coat");+ },+ );});describe("issues 15119 and 16112", () => {@@ -4335,7 +4339,7 @@ describe("issue 17061", () => {});// TODO ranquild unskip after v54 release-describe.skip("issue 48824", () => {+describe("issue 48824", { tags: "@skip" }, () => {const dateParameter = {id: "abc",name: "Date filter",diff --git a/e2e/test/scenarios/filters-reproductions/filters-reproductions.cy.spec.js b/e2e/test/scenarios/filters-reproductions/filters-reproductions.cy.spec.jsindex 13fa84fc921..79af06fbfe0 100644--- a/e2e/test/scenarios/filters-reproductions/filters-reproductions.cy.spec.js+++ b/e2e/test/scenarios/filters-reproductions/filters-reproductions.cy.spec.js@@ -40,7 +40,7 @@ describe("issue 9339", () => {});});-describe.skip("issue 12496", () => {+describe("issue 12496", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -732,7 +732,7 @@ describe("issue 25994", () => {});});-describe.skip("issue 26861", () => {+describe("issue 26861", { tags: "@skip" }, () => {const filter = {id: "a3b95feb-b6d2-33b6-660b-bb656f59b1d7",name: "filter",@@ -1045,7 +1045,7 @@ describe("metabase#32985", () => {});});-describe.skip("metabase#44550", () => {+describe("metabase#44550", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();diff --git a/e2e/test/scenarios/filters/filter.cy.spec.js b/e2e/test/scenarios/filters/filter.cy.spec.jsindex 3c065cc0901..4c178de96dd 100644--- a/e2e/test/scenarios/filters/filter.cy.spec.js+++ b/e2e/test/scenarios/filters/filter.cy.spec.js@@ -581,30 +581,34 @@ describe("scenarios > question > filter", () => {});});- it.skip("column filters should work for metrics (metabase#15333)", () => {- H.visitQuestionAdhoc({- dataset_query: {- type: "query",- query: {- "source-table": PRODUCTS_ID,- aggregation: [["count"]],- breakout: [["field-id", PRODUCTS.CATEGORY]],+ it(+ "column filters should work for metrics (metabase#15333)",+ { tags: "@skip" },+ () => {+ H.visitQuestionAdhoc({+ dataset_query: {+ type: "query",+ query: {+ "source-table": PRODUCTS_ID,+ aggregation: [["count"]],+ breakout: [["field-id", PRODUCTS.CATEGORY]],+ },+ database: SAMPLE_DB_ID,},- database: SAMPLE_DB_ID,- },- display: "table",- });+ display: "table",+ });- cy.get("[data-testid=cell-data]").contains("Count").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Filter by this column").click();- cy.findByPlaceholderText("Enter a number").type("42");- cy.button("Update filter").should("not.be.disabled").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Doohickey");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Gizmo").should("not.exist");- });+ cy.get("[data-testid=cell-data]").contains("Count").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Filter by this column").click();+ cy.findByPlaceholderText("Enter a number").type("42");+ cy.button("Update filter").should("not.be.disabled").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Doohickey");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Gizmo").should("not.exist");+ },+ );it("custom expression filter should reference fields by their name, not by their id (metabase#15748)", () => {H.openOrdersTable({ mode: "notebook" });@@ -1025,18 +1029,22 @@ describe("scenarios > question > filter", () => {});// TODO: fixme!- it.skip("should render custom expression helper near the custom expression field", () => {- H.openReviewsTable({ mode: "notebook" });- H.filter({ mode: "notebook" });+ it(+ "should render custom expression helper near the custom expression field",+ { tags: "@skip" },+ () => {+ H.openReviewsTable({ mode: "notebook" });+ H.filter({ mode: "notebook" });- H.expressionEditorWidget().within(() => {- cy.findByText("Custom Expression").click();+ H.expressionEditorWidget().within(() => {+ cy.findByText("Custom Expression").click();- H.enterCustomColumnDetails({ formula: "floor" });+ H.enterCustomColumnDetails({ formula: "floor" });- H.checkExpressionEditorHelperPopoverPosition();- });- });+ H.checkExpressionEditorHelperPopoverPosition();+ });+ },+ );it("should close the dropdown but not the popover on escape when the combobox is opened", () => {const optionName = "Abbey Satterfield";diff --git a/e2e/test/scenarios/joins/joins-reproductions.cy.spec.js b/e2e/test/scenarios/joins/joins-reproductions.cy.spec.jsindex 700d9ffa02e..c5a429a8f09 100644--- a/e2e/test/scenarios/joins/joins-reproductions.cy.spec.js+++ b/e2e/test/scenarios/joins/joins-reproductions.cy.spec.js@@ -1141,7 +1141,7 @@ describe("issue 39448", () => {});// See TODO inside this test when unskipping-describe.skip("issue 27521", () => {+describe("issue 27521", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsNormalUser();diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.js b/e2e/test/scenarios/models/reproductions.cy.spec.jsindex a8fd834155a..d58f5baed28 100644--- a/e2e/test/scenarios/models/reproductions.cy.spec.js+++ b/e2e/test/scenarios/models/reproductions.cy.spec.js@@ -304,7 +304,7 @@ describe("issue 20517", () => {});});-describe.skip("issue 20624", () => {+describe("issue 20624", { tags: "@skip" }, () => {const renamedColumn = "TITLE renamed";const questionDetails = {@@ -423,34 +423,38 @@ describe("issue 22517", () => {cy.wait("@updateMetadata");});- it.skip("adding or removing a column should not drop previously edited metadata (metabase#22517)", () => {- H.openQuestionActions();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Edit query definition").click();+ it(+ "adding or removing a column should not drop previously edited metadata (metabase#22517)",+ { tags: "@skip" },+ () => {+ H.openQuestionActions();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Edit query definition").click();- // Make sure previous metadata changes are reflected in the UI- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Foo");+ // Make sure previous metadata changes are reflected in the UI+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Foo");- // This will edit the original query and add the `SIZE` column- // Updated query: `select *, case when quantity > 4 then 'large' else 'small' end size from orders`- H.NativeEditor.focus().type(- "{leftarrow}".repeat(" from orders".length) +- ", case when quantity > 4 then 'large' else 'small' end size ",- );+ // This will edit the original query and add the `SIZE` column+ // Updated query: `select *, case when quantity > 4 then 'large' else 'small' end size from orders`+ H.NativeEditor.focus().type(+ "{leftarrow}".repeat(" from orders".length) ++ ", case when quantity > 4 then 'large' else 'small' end size ",+ );- cy.findByTestId("native-query-editor-container").icon("play").click();- cy.wait("@dataset");+ cy.findByTestId("native-query-editor-container").icon("play").click();+ cy.wait("@dataset");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Foo");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Foo");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Save changes").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Save changes").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Foo");- });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Foo");+ },+ );});describe("issue 22518", () => {@@ -493,7 +497,7 @@ describe("issue 22518", () => {});});-describe.skip("issue 22519", () => {+describe("issue 22519", { tags: "@skip" }, () => {const questionDetails = {query: {"source-table": REVIEWS_ID,diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.ts b/e2e/test/scenarios/models/reproductions.cy.spec.tsindex af1eaa4a275..fff3dc6b7c8 100644--- a/e2e/test/scenarios/models/reproductions.cy.spec.ts+++ b/e2e/test/scenarios/models/reproductions.cy.spec.ts@@ -1344,7 +1344,7 @@ describe("issue 47988", () => {});});-describe.skip("issues 28270, 33708", () => {+describe("issues 28270, 33708", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -1868,7 +1868,7 @@ describe("Issue 30712", () => {});});-describe.skip("issue 60930", () => {+describe("issue 60930", { tags: "@skip" }, () => {const modelDetails: StructuredQuestionDetails = {name: "Model",type: "model",diff --git a/e2e/test/scenarios/native-filters/native-filters-reproductions.cy.spec.js b/e2e/test/scenarios/native-filters/native-filters-reproductions.cy.spec.jsindex 92c07ca05bb..30df939d73e 100644--- a/e2e/test/scenarios/native-filters/native-filters-reproductions.cy.spec.js+++ b/e2e/test/scenarios/native-filters/native-filters-reproductions.cy.spec.js@@ -234,7 +234,7 @@ describe("issue 12581", () => {});});-describe.skip("issue 13961", () => {+describe("issue 13961", { tags: "@skip" }, () => {const categoryFilter = {id: "00315d5e-4a41-99da-1a41-e5254dacff9d",name: "category",@@ -772,23 +772,27 @@ describe("issue 17490", () => {cy.signInAsAdmin();});- it.skip("nav bar shouldn't cut off the popover with the tables for field filter selection (metabase#17490)", () => {- H.startNewNativeQuestion();- SQLFilter.enterParameterizedQuery("{{f}}");+ it(+ "nav bar shouldn't cut off the popover with the tables for field filter selection (metabase#17490)",+ { tags: "@skip" },+ () => {+ H.startNewNativeQuestion();+ SQLFilter.enterParameterizedQuery("{{f}}");- SQLFilter.openTypePickerFromDefaultFilterType();- SQLFilter.chooseType("Field Filter");+ SQLFilter.openTypePickerFromDefaultFilterType();+ SQLFilter.chooseType("Field Filter");- /**- * Although `.click()` isn't neccessary for Cypress to fill out this input field,- * it's something that we can use to assert that the input field is covered by another element.- * Cypress fails to click any element that is not "actionable" (for example - when it's covered).- * In other words, the `.click()` part is essential for this repro to work. Don't remove it.- */- cy.findByPlaceholderText("Find...").click().type("Orders").blur();+ /**+ * Although `.click()` isn't neccessary for Cypress to fill out this input field,+ * it's something that we can use to assert that the input field is covered by another element.+ * Cypress fails to click any element that is not "actionable" (for example - when it's covered).+ * In other words, the `.click()` part is essential for this repro to work. Don't remove it.+ */+ cy.findByPlaceholderText("Find...").click().type("Orders").blur();- cy.findByDisplayValue("Orders");- });+ cy.findByDisplayValue("Orders");+ },+ );});describe("issue 21160", () => {diff --git a/e2e/test/scenarios/native-filters/sql-filters.cy.spec.js b/e2e/test/scenarios/native-filters/sql-filters.cy.spec.jsindex e602fd97f84..00283f5663f 100644--- a/e2e/test/scenarios/native-filters/sql-filters.cy.spec.js+++ b/e2e/test/scenarios/native-filters/sql-filters.cy.spec.js@@ -262,20 +262,24 @@ describe("scenarios > filters > sql filters > basic filter types", () => {});// flaky test (#19454)- it.skip("should show an info popover when hovering over fields in the field filter field picker", () => {- SQLFilter.enterParameterizedQuery("SELECT * FROM products WHERE {{cat}}");+ it(+ "should show an info popover when hovering over fields in the field filter field picker",+ { tags: "@skip" },+ () => {+ SQLFilter.enterParameterizedQuery("SELECT * FROM products WHERE {{cat}}");- SQLFilter.openTypePickerFromDefaultFilterType();- SQLFilter.chooseType("Field Filter");+ SQLFilter.openTypePickerFromDefaultFilterType();+ SQLFilter.chooseType("Field Filter");- H.popover().within(() => {- cy.findByText("People").click();- cy.findByText("City").trigger("mouseenter");- });+ H.popover().within(() => {+ cy.findByText("People").click();+ cy.findByText("City").trigger("mouseenter");+ });- H.popover().contains("City");- H.popover().contains("1,966 distinct values");- });+ H.popover().contains("City");+ H.popover().contains("1,966 distinct values");+ },+ );});describe("scenarios > filters > sql filters > multiple values", () => {diff --git a/e2e/test/scenarios/native/ai-sql-fixer.cy.spec.ts b/e2e/test/scenarios/native/ai-sql-fixer.cy.spec.tsindex eef73cc0a4f..44dce397de0 100644--- a/e2e/test/scenarios/native/ai-sql-fixer.cy.spec.ts+++ b/e2e/test/scenarios/native/ai-sql-fixer.cy.spec.ts@@ -4,7 +4,7 @@ const { H } = cy;const FIX_MESSAGE = "Fixes applied. Run your query to view results.";-describe.skip("scenarios > native > ai sql fixer", () => {+describe("scenarios > native > ai sql fixer", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();diff --git a/e2e/test/scenarios/native/native-reproductions.cy.spec.js b/e2e/test/scenarios/native/native-reproductions.cy.spec.jsindex 1b5c10bf1b1..4622f36e6c4 100644--- a/e2e/test/scenarios/native/native-reproductions.cy.spec.js+++ b/e2e/test/scenarios/native/native-reproductions.cy.spec.js@@ -311,7 +311,7 @@ describe("issue 20044", () => {});});-describe("issue 20625", { tags: "@quarantine" }, () => {+describe("issue 20625", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();diff --git a/e2e/test/scenarios/native/native.cy.spec.js b/e2e/test/scenarios/native/native.cy.spec.jsindex 53572536404..89796670251 100644--- a/e2e/test/scenarios/native/native.cy.spec.js+++ b/e2e/test/scenarios/native/native.cy.spec.js@@ -753,7 +753,7 @@ describe("scenarios > question > native", () => {});// causes error in cypress 13-describe("no native access", { tags: ["@external", "@quarantine"] }, () => {+describe("no native access", { tags: ["@external", "@skip"] }, () => {beforeEach(() => {H.restore("postgres-12");cy.signInAsAdmin();diff --git a/e2e/test/scenarios/onboarding/about.cy.spec.js b/e2e/test/scenarios/onboarding/about.cy.spec.jsindex d656724602f..65c4a46eab9 100644--- a/e2e/test/scenarios/onboarding/about.cy.spec.js+++ b/e2e/test/scenarios/onboarding/about.cy.spec.js@@ -11,15 +11,19 @@ describe("scenarios > about Metabase", () => {cy.findByText("About Metabase").click();});- it.skip("should display correct Metabase version (metabase#15656)", () => {- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText(/You're on version v[01](\.\d+){2,3}(-[\w\d]+)?/i);- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText(/Built on \d{4}-\d{2}-\d{2}/);+ it(+ "should display correct Metabase version (metabase#15656)",+ { tags: "@skip" },+ () => {+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText(/You're on version v[01](\.\d+){2,3}(-[\w\d]+)?/i);+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText(/Built on \d{4}-\d{2}-\d{2}/);- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Branch: ?").should("not.exist");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Hash: ?").should("not.exist");- });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Branch: ?").should("not.exist");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Hash: ?").should("not.exist");+ },+ );});diff --git a/e2e/test/scenarios/onboarding/reference/databases.cy.spec.js b/e2e/test/scenarios/onboarding/reference/databases.cy.spec.jsindex b54146f5134..93f220df478 100644--- a/e2e/test/scenarios/onboarding/reference/databases.cy.spec.js+++ b/e2e/test/scenarios/onboarding/reference/databases.cy.spec.js@@ -69,13 +69,17 @@ describe("scenarios > reference > databases", () => {});});- it.skip("should sort data reference database list (metabase#15598)", () => {- cy.visit("/browse");- checkReferenceDatabasesOrder();-- cy.visit("/reference/databases/");- checkReferenceDatabasesOrder();- });+ it(+ "should sort data reference database list (metabase#15598)",+ { tags: "@skip" },+ () => {+ cy.visit("/browse");+ checkReferenceDatabasesOrder();++ cy.visit("/reference/databases/");+ checkReferenceDatabasesOrder();+ },+ );it("should sort databases in new UI based question data selection popover", () => {H.startNewQuestion();@@ -91,9 +95,13 @@ describe("scenarios > reference > databases", () => {});});- it.skip("should sort databases in new native question data selection popover", () => {- checkQuestionSourceDatabasesOrder("Native query");- });+ it(+ "should sort databases in new native question data selection popover",+ { tags: "@skip" },+ () => {+ checkQuestionSourceDatabasesOrder("Native query");+ },+ );});});diff --git a/e2e/test/scenarios/permissions/permissions-reproductions.cy.spec.js b/e2e/test/scenarios/permissions/permissions-reproductions.cy.spec.jsindex dba933a7755..632e8cbe6e3 100644--- a/e2e/test/scenarios/permissions/permissions-reproductions.cy.spec.js+++ b/e2e/test/scenarios/permissions/permissions-reproductions.cy.spec.js@@ -15,7 +15,7 @@ const { nocollection } = USERS;const PG_DB_ID = 2;// NOTE: This issue wasn't specifically related to PostgreSQL. We simply needed to add another DB to reproduce it.-describe.skip("issue 13347", { tags: "@external" }, () => {+describe("issue 13347", { tags: ["@external", "@skip"] }, () => {beforeEach(() => {cy.intercept("POST", "/api/dataset").as("dataset");@@ -149,7 +149,7 @@ describe("postgres > user > query", { tags: "@external" }, () => {});});-describe.skip("issue 17777", () => {+describe("issue 17777", { tags: "@skip" }, () => {function hideTables(tables) {cy.request("PUT", "/api/table", {ids: tables,diff --git a/e2e/test/scenarios/question-reproductions/reproductions-1.cy.spec.js b/e2e/test/scenarios/question-reproductions/reproductions-1.cy.spec.jsindex 851498bbacb..e3003917a4b 100644--- a/e2e/test/scenarios/question-reproductions/reproductions-1.cy.spec.js+++ b/e2e/test/scenarios/question-reproductions/reproductions-1.cy.spec.js@@ -1072,47 +1072,55 @@ describe("issue 19893", () => {cy.signInAsAdmin();});- it.skip("should display correct join source table when joining visited questions (metabase#19893)", () => {- H.createQuestion(QUESTION_1, {- wrapId: true,- idAlias: "questionId1",- visitQuestion: true,- });- H.createQuestion(QUESTION_2, {- wrapId: true,- idAlias: "questionId2",- visitQuestion: true,- });+ it(+ "should display correct join source table when joining visited questions (metabase#19893)",+ { tags: "@skip" },+ () => {+ H.createQuestion(QUESTION_1, {+ wrapId: true,+ idAlias: "questionId1",+ visitQuestion: true,+ });+ H.createQuestion(QUESTION_2, {+ wrapId: true,+ idAlias: "questionId2",+ visitQuestion: true,+ });- cy.then(function () {- const { questionId1, questionId2 } = this;+ cy.then(function () {+ const { questionId1, questionId2 } = this;- createQ1PlusQ2Question(questionId1, questionId2).then(- ({ body: question }) => {- cy.visit(`/question/${question.id}/notebook`);- },- );- });+ createQ1PlusQ2Question(questionId1, questionId2).then(+ ({ body: question }) => {+ cy.visit(`/question/${question.id}/notebook`);+ },+ );+ });- assertQ1PlusQ2Joins();- });+ assertQ1PlusQ2Joins();+ },+ );- it.skip("should display correct join source table when joining non-visited questions (metabase#19893)", () => {- H.createQuestion(QUESTION_1, { wrapId: true, idAlias: "questionId1" });- H.createQuestion(QUESTION_2, { wrapId: true, idAlias: "questionId2" });+ it(+ "should display correct join source table when joining non-visited questions (metabase#19893)",+ { tags: "@skip" },+ () => {+ H.createQuestion(QUESTION_1, { wrapId: true, idAlias: "questionId1" });+ H.createQuestion(QUESTION_2, { wrapId: true, idAlias: "questionId2" });- cy.then(function () {- const { questionId1, questionId2 } = this;+ cy.then(function () {+ const { questionId1, questionId2 } = this;- createQ1PlusQ2Question(questionId1, questionId2).then(- ({ body: question }) => {- cy.visit(`/question/${question.id}/notebook`);- },- );- });+ createQ1PlusQ2Question(questionId1, questionId2).then(+ ({ body: question }) => {+ cy.visit(`/question/${question.id}/notebook`);+ },+ );+ });- assertQ1PlusQ2Joins();- });+ assertQ1PlusQ2Joins();+ },+ );});const createQ1PlusQ2Question = (questionId1, questionId2) => {diff --git a/e2e/test/scenarios/question-reproductions/reproductions-3.cy.spec.js b/e2e/test/scenarios/question-reproductions/reproductions-3.cy.spec.jsindex d5002913b2d..3aa686bc0dd 100644--- a/e2e/test/scenarios/question-reproductions/reproductions-3.cy.spec.js+++ b/e2e/test/scenarios/question-reproductions/reproductions-3.cy.spec.js@@ -790,7 +790,7 @@ describe("issue 40064", () => {});});-describe.skip("issue 10493", () => {+describe("issue 10493", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.intercept("POST", "/api/dataset").as("dataset");@@ -2038,7 +2038,7 @@ describe("issue 41464", () => {});});-describe.skip("issue 45359", () => {+describe("issue 45359", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.intercept("/app/fonts/Lato/lato-v16-latin-regular.woff2").as(diff --git a/e2e/test/scenarios/question-reproductions/reproductions.cy.spec.ts b/e2e/test/scenarios/question-reproductions/reproductions.cy.spec.tsindex 7eb39accff5..80333966a4b 100644--- a/e2e/test/scenarios/question-reproductions/reproductions.cy.spec.ts+++ b/e2e/test/scenarios/question-reproductions/reproductions.cy.spec.ts@@ -120,9 +120,9 @@ describe("issue 39487", () => {// broken after migration away from filter modal// see https://github.com/metabase/metabase/issues/55688- it.skip(+ it("calendar has constant size when using date range picker filter (metabase#39487)",- { viewportHeight: 1000 },+ { viewportHeight: 1000, tags: "@skip" },() => {createTimeSeriesQuestionWithFilter(["between",@@ -953,7 +953,7 @@ describe("issue 55631", () => {});});-describe.skip("issue 39033", () => {+describe("issue 39033", { tags: "@skip" }, () => {const question1Name = "Q1";const question1Details: NativeQuestionDetails = {name: question1Name,diff --git a/e2e/test/scenarios/question/column-compare.cy.spec.ts b/e2e/test/scenarios/question/column-compare.cy.spec.tsindex 8840ad6ee18..33d3f8f41ce 100644--- a/e2e/test/scenarios/question/column-compare.cy.spec.ts+++ b/e2e/test/scenarios/question/column-compare.cy.spec.ts@@ -183,7 +183,7 @@ const CUSTOM_EXPRESSIONS_USED_MOVING_AVERAGE = [];// TODO: reenable test when we reenable the "Compare to the past" components.-describe.skip("scenarios > question", () => {+describe("scenarios > question", { tags: "@skip" }, () => {H.describeWithSnowplow("column compare", () => {beforeEach(() => {H.restore();diff --git a/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts b/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.tsindex fdf8769a99d..5000cd44430 100644--- a/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts+++ b/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts@@ -397,53 +397,63 @@ describe(},);- it.skip("should work for a nested GUI question (metabase#40557)", () => {- H.withDatabase(- MONGO_DB_ID,- ({ PRODUCTS_ID }: { PRODUCTS_ID: number }) => {- H.createQuestion({- name: "Mongo Source",- query: {- "source-table": PRODUCTS_ID,- limit: 1,- },- database: MONGO_DB_ID,- }).then(({ body: { id: sourceId } }) => {- H.createQuestion(- {- name: "Mongo Nested",- query: {- "source-table": `card__${sourceId}`,- },- database: MONGO_DB_ID,+ it(+ "should work for a nested GUI question (metabase#40557)",+ { tags: "@skip" },+ () => {+ H.withDatabase(+ MONGO_DB_ID,+ ({ PRODUCTS_ID }: { PRODUCTS_ID: number }) => {+ H.createQuestion({+ name: "Mongo Source",+ query: {+ "source-table": PRODUCTS_ID,+ limit: 1,},- { visitQuestion: true },- );- });- },- );+ database: MONGO_DB_ID,+ }).then(({ body: { id: sourceId } }) => {+ H.createQuestion(+ {+ name: "Mongo Nested",+ query: {+ "source-table": `card__${sourceId}`,+ },+ database: MONGO_DB_ID,+ },+ { visitQuestion: true },+ );+ });+ },+ );- cy.get("[data-testid=cell-data]").should("contain", "Small Marble Shoes");- H.openNotebook();- cy.findByLabelText("View native query").click();+ cy.get("[data-testid=cell-data]").should(+ "contain",+ "Small Marble Shoes",+ );+ H.openNotebook();+ cy.findByLabelText("View native query").click();- cy.findByTestId("native-query-preview-sidebar").within(() => {- cy.findByText("Native query for this question").should("exist");- H.NativeEditor.get()- .should("be.visible")- .and("contain", "$project")- .and("contain", "$limit")- .and("not.contain", "BsonString")- .and("not.contain", "BsonInt32");+ cy.findByTestId("native-query-preview-sidebar").within(() => {+ cy.findByText("Native query for this question").should("exist");+ H.NativeEditor.get()+ .should("be.visible")+ .and("contain", "$project")+ .and("contain", "$limit")+ .and("not.contain", "BsonString")+ .and("not.contain", "BsonInt32");- cy.button("Convert this question to a native query").click();- });+ cy.button("Convert this question to a native query").click();+ });- cy.log("Database and table should be pre-selected (metabase#40557)");- cy.findByTestId("selected-database").should("have.text", MONGO_DB_NAME);- cy.findByTestId("selected-table").should("have.text", "Products");- cy.get("[data-testid=cell-data]").should("contain", "Small Marble Shoes");- });+ cy.log("Database and table should be pre-selected (metabase#40557)");+ cy.findByTestId("selected-database").should("have.text", MONGO_DB_NAME);+ cy.findByTestId("selected-table").should("have.text", "Products");+ cy.get("[data-testid=cell-data]").should(+ "contain",+ "Small Marble Shoes",+ );+ },+ );},);diff --git a/e2e/test/scenarios/question/notebook.cy.spec.js b/e2e/test/scenarios/question/notebook.cy.spec.jsindex 1963b04e8c9..59e06c2910a 100644--- a/e2e/test/scenarios/question/notebook.cy.spec.js+++ b/e2e/test/scenarios/question/notebook.cy.spec.js@@ -228,38 +228,42 @@ describe("scenarios > question > notebook", { tags: "@slow" }, () => {});});- describe.skip("popover rendering issues (metabase#15502)", () => {- beforeEach(() => {- H.restore();- cy.signInAsAdmin();- cy.viewport(1280, 720);- H.startNewQuestion();- cy.findByTextEnsureVisible("Sample Database").click();- cy.findByTextEnsureVisible("Orders").click();- });+ describe(+ "popover rendering issues (metabase#15502)",+ { tags: "@skip" },+ () => {+ beforeEach(() => {+ H.restore();+ cy.signInAsAdmin();+ cy.viewport(1280, 720);+ H.startNewQuestion();+ cy.findByTextEnsureVisible("Sample Database").click();+ cy.findByTextEnsureVisible("Orders").click();+ });- it("popover should not render outside of viewport regardless of the screen resolution (metabase#15502-1)", () => {- // Initial filter popover usually renders correctly within the viewport- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Add filters to narrow your answer").as("filter").click();- H.popover().isRenderedWithinViewport();- // Click anywhere outside this popover to close it because the issue with rendering happens when popover opens for the second time- cy.icon("gear").click();- cy.get("@filter").click();- H.popover().isRenderedWithinViewport();- });+ it("popover should not render outside of viewport regardless of the screen resolution (metabase#15502-1)", () => {+ // Initial filter popover usually renders correctly within the viewport+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Add filters to narrow your answer").as("filter").click();+ H.popover().isRenderedWithinViewport();+ // Click anywhere outside this popover to close it because the issue with rendering happens when popover opens for the second time+ cy.icon("gear").click();+ cy.get("@filter").click();+ H.popover().isRenderedWithinViewport();+ });- it("popover should not cover the button that invoked it (metabase#15502-2)", () => {- // Initial summarize/metric popover usually renders initially without blocking the button- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Pick a function or metric").as("metric").click();- // Click outside to close this popover- cy.icon("gear").click();- // Popover invoked again blocks the button making it impossible to click the button for the third time- cy.get("@metric").click();- cy.get("@metric").click();- });- });+ it("popover should not cover the button that invoked it (metabase#15502-2)", () => {+ // Initial summarize/metric popover usually renders initially without blocking the button+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Pick a function or metric").as("metric").click();+ // Click outside to close this popover+ cy.icon("gear").click();+ // Popover invoked again blocks the button making it impossible to click the button for the third time+ cy.get("@metric").click();+ cy.get("@metric").click();+ });+ },+ );describe("arithmetic (metabase#13175, metabase#18094)", () => {beforeEach(() => {@@ -467,44 +471,52 @@ describe("scenarios > question > notebook", { tags: "@slow" }, () => {});// flaky test- it.skip("should show an info popover when hovering over a field picker option for a table", () => {- H.startNewQuestion();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Sample Database").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Orders").click();+ it(+ "should show an info popover when hovering over a field picker option for a table",+ { tags: "@skip" },+ () => {+ H.startNewQuestion();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Sample Database").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Orders").click();- cy.findByTestId("fields-picker").click();+ cy.findByTestId("fields-picker").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Total").trigger("mouseenter");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Total").trigger("mouseenter");- H.popover().contains("The total billed amount.");- H.popover().contains("80.36");- });+ H.popover().contains("The total billed amount.");+ H.popover().contains("80.36");+ },+ );// flaky test- it.skip("should show an info popover when hovering over a field picker option for a saved question", () => {- H.createNativeQuestion({- name: "question a",- native: { query: "select 'foo' as a_column" },- });+ it(+ "should show an info popover when hovering over a field picker option for a saved question",+ { tags: "@skip" },+ () => {+ H.createNativeQuestion({+ name: "question a",+ native: { query: "select 'foo' as a_column" },+ });- // start a custom question with question a- H.startNewQuestion();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Saved Questions").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("question a").click();+ // start a custom question with question a+ H.startNewQuestion();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Saved Questions").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("question a").click();- cy.findByTestId("fields-picker").click();+ cy.findByTestId("fields-picker").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("A_COLUMN").trigger("mouseenter");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("A_COLUMN").trigger("mouseenter");- H.popover().contains("A_COLUMN");- H.popover().contains("No description");- });+ H.popover().contains("A_COLUMN");+ H.popover().contains("No description");+ },+ );it("should allow to pick a saved question when there are models", () => {H.createNativeQuestion({@@ -817,75 +829,79 @@ describe("scenarios > question > notebook", { tags: "@slow" }, () => {});});- it.skip("should be possible to sort by metric (metabase#8283,metabase#42392)", () => {- H.createQuestion(- {- name: "Revenue",- description: "Sum of orders subtotal",- type: "metric",- query: {- "source-table": ORDERS_ID,- aggregation: [["sum", ["field", ORDERS.SUBTOTAL, null]]],+ it(+ "should be possible to sort by metric (metabase#8283,metabase#42392)",+ { tags: "@skip" },+ () => {+ H.createQuestion(+ {+ name: "Revenue",+ description: "Sum of orders subtotal",+ type: "metric",+ query: {+ "source-table": ORDERS_ID,+ aggregation: [["sum", ["field", ORDERS.SUBTOTAL, null]]],+ },},- },- {- wrapId: true,- idAlias: "metricId",- },- );-- cy.get("@metricId").then((metricId) => {- const questionDetails = {- query: {- "source-table": `card__${metricId}`,- aggregation: ["metric", metricId],+ {+ wrapId: true,+ idAlias: "metricId",},- };+ );- H.createQuestion(questionDetails, { visitQuestion: true });+ cy.get("@metricId").then((metricId) => {+ const questionDetails = {+ query: {+ "source-table": `card__${metricId}`,+ aggregation: ["metric", metricId],+ },+ };- H.openNotebook();+ H.createQuestion(questionDetails, { visitQuestion: true });- cy.findByText("Pick a column to group by").click();- cy.findByText("Created At").click();- cy.findByText("Sort").click();+ H.openNotebook();- // Sorts ascending by default- // Revenue appears twice, but it's the only integer column to order by- H.popover().icon("int").click();+ cy.findByText("Pick a column to group by").click();+ cy.findByText("Created At").click();+ cy.findByText("Sort").click();- // Let's make sure it's possible to sort descending as well- cy.icon("arrow_up").click();+ // Sorts ascending by default+ // Revenue appears twice, but it's the only integer column to order by+ H.popover().icon("int").click();- cy.icon("arrow_down").parent().contains("Revenue");+ // Let's make sure it's possible to sort descending as well+ cy.icon("arrow_up").click();- H.visualize();- // Visualization will render line chart by default. Switch to the table.- cy.icon("table2").click();+ cy.icon("arrow_down").parent().contains("Revenue");- cy.findAllByRole("grid").as("table");- cy.get("@table")- .first()- .as("tableHeader")- .within(() => {- cy.get("[data-testid=cell-data]")- .eq(1)- .invoke("text")- .should("eq", "Revenue");- });+ H.visualize();+ // Visualization will render line chart by default. Switch to the table.+ cy.icon("table2").click();++ cy.findAllByRole("grid").as("table");+ cy.get("@table")+ .first()+ .as("tableHeader")+ .within(() => {+ cy.get("[data-testid=cell-data]")+ .eq(1)+ .invoke("text")+ .should("eq", "Revenue");+ });- // eslint-disable-next-line no-unsafe-element-filtering- cy.get("@table")- .last()- .as("tableBody")- .within(() => {- cy.get("[data-testid=cell-data]")- .eq(1)- .invoke("text")- .should("eq", "50,072.98");- });- });- });+ // eslint-disable-next-line no-unsafe-element-filtering+ cy.get("@table")+ .last()+ .as("tableBody")+ .within(() => {+ cy.get("[data-testid=cell-data]")+ .eq(1)+ .invoke("text")+ .should("eq", "50,072.98");+ });+ });+ },+ );it("should open only one bucketing popover at a time (metabase#45036)", () => {H.visitQuestionAdhoc(diff --git a/e2e/test/scenarios/question/offset.cy.spec.ts b/e2e/test/scenarios/question/offset.cy.spec.tsindex 9ddefd61c85..02e71a57a12 100644--- a/e2e/test/scenarios/question/offset.cy.spec.ts+++ b/e2e/test/scenarios/question/offset.cy.spec.ts@@ -87,7 +87,7 @@ describe("scenarios > question > offset", () => {});// Skipped because we want to disable offset() in custom columns for now- it.skip("suggests and allows using offset()", () => {+ it("suggests and allows using offset()", { tags: "@skip" }, () => {const expression = "Offset([Total], -1)";const prefixLength = 3;const prefix = expression.substring(0, prefixLength);@@ -147,61 +147,65 @@ describe("scenarios > question > offset", () => {});// Skipped because we want to disable offset() in custom columns for now- it.skip("does not allow to use offset-based column in other clauses (metabase#42764)", () => {- const offsettedColumnName = "xyz";- const expression = `Offset([${offsettedColumnName}], -1)`;- const prefixLength = "Offset([x".length;- const prefix = expression.substring(0, prefixLength);- const query: StructuredQuery = {- "source-table": ORDERS_ID,- expressions: {- [offsettedColumnName]: [- "offset",- createOffsetOptions(offsettedColumnName),- ORDERS_TOTAL_FIELD_REF,- -1,- ],- },- "order-by": [["asc", ORDERS_ID_FIELD_REF]],- limit: 5,- };-- H.createQuestion({ query }, { visitQuestion: true });-- cy.log("custom column drills");- const rowIndex = 1;- const columnIndex = 9;- const columnsCount = 10;- const cellIndex = rowIndex * columnsCount + columnIndex;- // eslint-disable-next-line no-unsafe-element-filtering- cy.findAllByRole("gridcell").eq(cellIndex).click();- cy.get(H.POPOVER_ELEMENT).should("not.exist");+ it(+ "does not allow to use offset-based column in other clauses (metabase#42764)",+ { tags: "@skip" },+ () => {+ const offsettedColumnName = "xyz";+ const expression = `Offset([${offsettedColumnName}], -1)`;+ const prefixLength = "Offset([x".length;+ const prefix = expression.substring(0, prefixLength);+ const query: StructuredQuery = {+ "source-table": ORDERS_ID,+ expressions: {+ [offsettedColumnName]: [+ "offset",+ createOffsetOptions(offsettedColumnName),+ ORDERS_TOTAL_FIELD_REF,+ -1,+ ],+ },+ "order-by": [["asc", ORDERS_ID_FIELD_REF]],+ limit: 5,+ };- H.openNotebook();+ H.createQuestion({ query }, { visitQuestion: true });- cy.log("custom column expressions");- H.getNotebookStep("expression").icon("add").click();- verifyInvalidColumnName(offsettedColumnName, prefix, expression);- H.popover().button("Cancel").click();+ cy.log("custom column drills");+ const rowIndex = 1;+ const columnIndex = 9;+ const columnsCount = 10;+ const cellIndex = rowIndex * columnsCount + columnIndex;+ // eslint-disable-next-line no-unsafe-element-filtering+ cy.findAllByRole("gridcell").eq(cellIndex).click();+ cy.get(H.POPOVER_ELEMENT).should("not.exist");- cy.log("custom filter expressions");- cy.icon("filter").click();- H.popover().findByText("Custom Expression").click();- verifyInvalidColumnName(offsettedColumnName, prefix, expression);- H.popover().button("Cancel").click();- cy.realPress("Escape");-- cy.log("custom aggregation expressions");- cy.icon("sum").click();- H.popover().findByText("Custom Expression").click();- verifyInvalidColumnName(offsettedColumnName, prefix, expression);- H.popover().button("Cancel").click();- cy.realPress("Escape");+ H.openNotebook();- cy.log("sort clause");- H.getNotebookStep("sort").icon("add").click();- H.popover().should("not.contain", offsettedColumnName);- });+ cy.log("custom column expressions");+ H.getNotebookStep("expression").icon("add").click();+ verifyInvalidColumnName(offsettedColumnName, prefix, expression);+ H.popover().button("Cancel").click();++ cy.log("custom filter expressions");+ cy.icon("filter").click();+ H.popover().findByText("Custom Expression").click();+ verifyInvalidColumnName(offsettedColumnName, prefix, expression);+ H.popover().button("Cancel").click();+ cy.realPress("Escape");++ cy.log("custom aggregation expressions");+ cy.icon("sum").click();+ H.popover().findByText("Custom Expression").click();+ verifyInvalidColumnName(offsettedColumnName, prefix, expression);+ H.popover().button("Cancel").click();+ cy.realPress("Escape");++ cy.log("sort clause");+ H.getNotebookStep("sort").icon("add").click();+ H.popover().should("not.contain", offsettedColumnName);+ },+ );});describe("filters", () => {@@ -286,27 +290,31 @@ describe("scenarios > question > offset", () => {);});- it.skip("does not preview sql without a breakout (metabase#47819)", () => {- cy.intercept("POST", "/api/dataset/native").as("sqlPreview");+ it(+ "does not preview sql without a breakout (metabase#47819)",+ { tags: "@skip" },+ () => {+ cy.intercept("POST", "/api/dataset/native").as("sqlPreview");- const query: StructuredQuery = {- "source-table": ORDERS_ID,- aggregation: [OFFSET_SUM_TOTAL_AGGREGATION],- limit: 5,- };+ const query: StructuredQuery = {+ "source-table": ORDERS_ID,+ aggregation: [OFFSET_SUM_TOTAL_AGGREGATION],+ limit: 5,+ };- H.createQuestion({ query }, { visitQuestion: true });+ H.createQuestion({ query }, { visitQuestion: true });- H.openNotebook();+ H.openNotebook();- cy.findByLabelText("View SQL").click();- cy.wait("@sqlPreview");+ cy.findByLabelText("View SQL").click();+ cy.wait("@sqlPreview");- cy.findByTestId("native-query-preview-sidebar").should(- "not.contain",- "Error generating the query.",- );- });+ cy.findByTestId("native-query-preview-sidebar").should(+ "not.contain",+ "Error generating the query.",+ );+ },+ );it("works with a single breakout", () => {const query: StructuredQuery = {diff --git a/e2e/test/scenarios/question/saved.cy.spec.js b/e2e/test/scenarios/question/saved.cy.spec.jsindex a02f3c6678b..91eb394c058 100644--- a/e2e/test/scenarios/question/saved.cy.spec.js+++ b/e2e/test/scenarios/question/saved.cy.spec.js@@ -17,73 +17,77 @@ describe("scenarios > question > saved", () => {cy.intercept("POST", "api/card").as("cardCreate");});- it.skip("should should correctly display 'Save' modal (metabase#13817)", () => {- H.openOrdersTable();- H.openNotebook();-- H.summarize({ mode: "notebook" });- H.popover().findByText("Count of rows").click();- H.addSummaryGroupingField({ field: "Total" });-- // Test save modal and nested entity picker can be closed via consecutive escape key presses- H.queryBuilderHeader().button("Save").click();- cy.findByTestId("save-question-modal").within(() => {- cy.findByTestId("dashboard-and-collection-picker-button").click();- // wait for focus to be removed from clicked element to avoid test flakes- // cypress executes faster than ui updates causing the focus position to lag behind on save modal+ it(+ "should should correctly display 'Save' modal (metabase#13817)",+ { tags: "@skip" },+ () => {+ H.openOrdersTable();+ H.openNotebook();++ H.summarize({ mode: "notebook" });+ H.popover().findByText("Count of rows").click();+ H.addSummaryGroupingField({ field: "Total" });++ // Test save modal and nested entity picker can be closed via consecutive escape key presses+ H.queryBuilderHeader().button("Save").click();+ cy.findByTestId("save-question-modal").within(() => {+ cy.findByTestId("dashboard-and-collection-picker-button").click();+ // wait for focus to be removed from clicked element to avoid test flakes+ // cypress executes faster than ui updates causing the focus position to lag behind on save modal+ cy.findByTestId("dashboard-and-collection-picker-button").should(+ "not.be.focused",+ );+ });+ H.entityPickerModal().should("exist");+ cy.realPress("{esc}");+ H.entityPickerModal().should("not.exist");+ cy.findByTestId("save-question-modal").should("exist");cy.findByTestId("dashboard-and-collection-picker-button").should(- "not.be.focused",+ "be.focused",);- });- H.entityPickerModal().should("exist");- cy.realPress("{esc}");- H.entityPickerModal().should("not.exist");- cy.findByTestId("save-question-modal").should("exist");- cy.findByTestId("dashboard-and-collection-picker-button").should(- "be.focused",- );- cy.realPress("{esc}");- cy.findByTestId("save-question-modal").should("not.exist");+ cy.realPress("{esc}");+ cy.findByTestId("save-question-modal").should("not.exist");- // Save the question- H.queryBuilderHeader().button("Save").click();- cy.findByTestId("save-question-modal").within((modal) => {- cy.findByText("Save").click();- });- cy.wait("@cardCreate");- cy.button("Not now").click();+ // Save the question+ H.queryBuilderHeader().button("Save").click();+ cy.findByTestId("save-question-modal").within((modal) => {+ cy.findByText("Save").click();+ });+ cy.wait("@cardCreate");+ cy.button("Not now").click();- // Add a filter in order to be able to save question again- // eslint-disable-next-line no-unsafe-element-filtering- cy.findAllByTestId("action-buttons").last().findByText("Filter").click();+ // Add a filter in order to be able to save question again+ // eslint-disable-next-line no-unsafe-element-filtering+ cy.findAllByTestId("action-buttons").last().findByText("Filter").click();- H.popover().findByText("Total: Auto binned").click();- H.selectFilterOperator("Greater than");+ H.popover().findByText("Total: Auto binned").click();+ H.selectFilterOperator("Greater than");- H.popover().within(() => {- cy.findByPlaceholderText("Enter a number").type("60");- cy.button("Add filter").click();- });+ H.popover().within(() => {+ cy.findByPlaceholderText("Enter a number").type("60");+ cy.button("Add filter").click();+ });- H.queryBuilderHeader().button("Save").click();+ H.queryBuilderHeader().button("Save").click();- cy.findByTestId("save-question-modal").within((modal) => {- cy.findByText("Save question").should("be.visible");- cy.findByTestId("save-question-button").should("be.enabled");+ cy.findByTestId("save-question-modal").within((modal) => {+ cy.findByText("Save question").should("be.visible");+ cy.findByTestId("save-question-button").should("be.enabled");- cy.findByText("Save as new question").click();- cy.findByLabelText("Name")- .click()- .type("{selectall}{backspace}", { delay: 50 })- .blur();- cy.findByLabelText("Name").should("be.empty");- cy.findByLabelText("Description").should("be.empty");- cy.findByTestId("save-question-button").should("be.disabled");+ cy.findByText("Save as new question").click();+ cy.findByLabelText("Name")+ .click()+ .type("{selectall}{backspace}", { delay: 50 })+ .blur();+ cy.findByLabelText("Name").should("be.empty");+ cy.findByLabelText("Description").should("be.empty");+ cy.findByTestId("save-question-button").should("be.disabled");- cy.findByText(/^Replace original question,/).click();- cy.findByTestId("save-question-button").should("be.enabled");- });- });+ cy.findByText(/^Replace original question,/).click();+ cy.findByTestId("save-question-button").should("be.enabled");+ });+ },+ );it("view and filter saved question", () => {H.visitQuestion(ORDERS_QUESTION_ID);@@ -733,7 +737,7 @@ describe(});// There is no api to test individual hooks for new Question Alerts- it.skip("should allow you to test a webhook", () => {+ it("should allow you to test a webhook", { tags: "@skip" }, () => {cy.intercept("POST", "/api/pulse/test").as("testAlert");H.visitQuestion(ORDERS_COUNT_QUESTION_ID);cy.findByTestId("sharing-menu-button").click();diff --git a/e2e/test/scenarios/question/settings.cy.spec.js b/e2e/test/scenarios/question/settings.cy.spec.jsindex a110990d302..6a79c8ce35f 100644--- a/e2e/test/scenarios/question/settings.cy.spec.js+++ b/e2e/test/scenarios/question/settings.cy.spec.js@@ -413,119 +413,127 @@ describe("scenarios > question > settings", () => {});});- it.skip("should allow hiding and showing aggregated columns with a post-aggregation custom column (metabase#22563)", () => {- // products joined to orders with breakouts on 3 product columns followed by a custom column- H.createQuestion(- {- name: "repro 22563",- query: {- "source-query": {- "source-table": ORDERS_ID,- joins: [- {- alias: "Products",- condition: [- "=",- ["field", ORDERS.PRODUCT_ID, null],- [- "field",- PRODUCTS.ID,- {- "join-alias": "Products",- },- ],- ],- "source-table": PRODUCTS_ID,- },- ],- aggregation: [["count"]],- breakout: [- [- "field",- PRODUCTS.CATEGORY,- {- "base-type": "type/Text",- "join-alias": "Products",- },- ],- [- "field",- PRODUCTS.TITLE,+ it(+ "should allow hiding and showing aggregated columns with a post-aggregation custom column (metabase#22563)",+ { tags: "@skip" },+ () => {+ // products joined to orders with breakouts on 3 product columns followed by a custom column+ H.createQuestion(+ {+ name: "repro 22563",+ query: {+ "source-query": {+ "source-table": ORDERS_ID,+ joins: [{- "base-type": "type/Text",- "join-alias": "Products",+ alias: "Products",+ condition: [+ "=",+ ["field", ORDERS.PRODUCT_ID, null],+ [+ "field",+ PRODUCTS.ID,+ {+ "join-alias": "Products",+ },+ ],+ ],+ "source-table": PRODUCTS_ID,},],- [- "field",- PRODUCTS.VENDOR,- {- "base-type": "type/Text",- "join-alias": "Products",- },+ aggregation: [["count"]],+ breakout: [+ [+ "field",+ PRODUCTS.CATEGORY,+ {+ "base-type": "type/Text",+ "join-alias": "Products",+ },+ ],+ [+ "field",+ PRODUCTS.TITLE,+ {+ "base-type": "type/Text",+ "join-alias": "Products",+ },+ ],+ [+ "field",+ PRODUCTS.VENDOR,+ {+ "base-type": "type/Text",+ "join-alias": "Products",+ },+ ],],- ],- },- expressions: {- two: ["+", 1, 1],+ },+ expressions: {+ two: ["+", 1, 1],+ },},},- },- { visitQuestion: true },- );-- const columnNames = [- "Products → Category",- "Products → Title",- "Products → Vendor",- "Count",- "two",- ];-- H.tableInteractive().within(() => {- columnNames.forEach((text) => cy.findByText(text).should("be.visible"));- });+ { visitQuestion: true },+ );++ const columnNames = [+ "Products → Category",+ "Products → Title",+ "Products → Vendor",+ "Count",+ "two",+ ];++ H.tableInteractive().within(() => {+ columnNames.forEach((text) =>+ cy.findByText(text).should("be.visible"),+ );+ });- H.openVizSettingsSidebar();+ H.openVizSettingsSidebar();- cy.findByTestId("chartsettings-sidebar").within(() => {- columnNames.forEach((text) => cy.findByText(text).should("be.visible"));- cy.findByText("More Columns").should("not.exist");+ cy.findByTestId("chartsettings-sidebar").within(() => {+ columnNames.forEach((text) =>+ cy.findByText(text).should("be.visible"),+ );+ cy.findByText("More Columns").should("not.exist");- cy.icon("eye_outline").first().click();+ cy.icon("eye_outline").first().click();- cy.findByText("More columns").should("be.visible");+ cy.findByText("More columns").should("be.visible");- // disable the first column- cy.findByTestId("disabled-columns")- .findByText("Products → Category")- .should("be.visible");- cy.findByTestId("visible-columns")- .findByText("Products → Category")- .should("not.exist");- });+ // disable the first column+ cy.findByTestId("disabled-columns")+ .findByText("Products → Category")+ .should("be.visible");+ cy.findByTestId("visible-columns")+ .findByText("Products → Category")+ .should("not.exist");+ });- H.tableInteractive().within(() => {- // the query should not have changed- cy.icon("play").should("not.exist");- cy.findByText("Products → Category").should("not.exist");- });+ H.tableInteractive().within(() => {+ // the query should not have changed+ cy.icon("play").should("not.exist");+ cy.findByText("Products → Category").should("not.exist");+ });- cy.findByTestId("chartsettings-sidebar").within(() => {- cy.icon("add").click();- // re-enable the first column- cy.findByText("More columns").should("not.exist");- cy.findByTestId("visible-columns")- .findByText("Products → Category")- .should("be.visible");- });+ cy.findByTestId("chartsettings-sidebar").within(() => {+ cy.icon("add").click();+ // re-enable the first column+ cy.findByText("More columns").should("not.exist");+ cy.findByTestId("visible-columns")+ .findByText("Products → Category")+ .should("be.visible");+ });- H.tableInteractive().within(() => {- // the query should not have changed- cy.icon("play").should("not.exist");- cy.findByText("Products → Category").should("be.visible");- });- });+ H.tableInteractive().within(() => {+ // the query should not have changed+ cy.icon("play").should("not.exist");+ cy.findByText("Products → Category").should("be.visible");+ });+ },+ );});describe("resetting state", () => {diff --git a/e2e/test/scenarios/question/summarization.cy.spec.js b/e2e/test/scenarios/question/summarization.cy.spec.jsindex 0da0838f957..a48249ce17a 100644--- a/e2e/test/scenarios/question/summarization.cy.spec.js+++ b/e2e/test/scenarios/question/summarization.cy.spec.js@@ -263,33 +263,41 @@ describe("scenarios > question > summarize sidebar", () => {});// flaky test (#19454)- it.skip("should show an info popover when hovering over summarize dimension options", () => {- H.openReviewsTable();-- H.summarize();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Group by")- .parent()- .findByText("Title")- .trigger("mouseenter");-- H.popover().contains("Title");- H.popover().contains("199 distinct values");- });+ it(+ "should show an info popover when hovering over summarize dimension options",+ { tags: "@skip" },+ () => {+ H.openReviewsTable();++ H.summarize();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Group by")+ .parent()+ .findByText("Title")+ .trigger("mouseenter");++ H.popover().contains("Title");+ H.popover().contains("199 distinct values");+ },+ );// TODO: fixme!- it.skip("should render custom expression helper near the custom expression field", () => {- H.openReviewsTable({ mode: "notebook" });- H.summarize({ mode: "notebook" });+ it(+ "should render custom expression helper near the custom expression field",+ { tags: "@skip" },+ () => {+ H.openReviewsTable({ mode: "notebook" });+ H.summarize({ mode: "notebook" });- H.popover().within(() => {- cy.findByText("Custom Expression").click();+ H.popover().within(() => {+ cy.findByText("Custom Expression").click();- H.enterCustomColumnDetails({ formula: "floor" });+ H.enterCustomColumnDetails({ formula: "floor" });- H.checkExpressionEditorHelperPopoverPosition();- });- });+ H.checkExpressionEditorHelperPopoverPosition();+ });+ },+ );});function removeMetricFromSidebar(metricName) {diff --git a/e2e/test/scenarios/search/search.cy.spec.js b/e2e/test/scenarios/search/search.cy.spec.jsindex 60c9a8e8fa4..8a5e9eb9e92 100644--- a/e2e/test/scenarios/search/search.cy.spec.js+++ b/e2e/test/scenarios/search/search.cy.spec.js@@ -249,7 +249,7 @@ describe("scenarios > search", () => {});});-describe.skip("issue 16785", () => {+describe("issue 16785", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();diff --git a/e2e/test/scenarios/sharing/downloads/sharing-download-reproductions.cy.spec.js b/e2e/test/scenarios/sharing/downloads/sharing-download-reproductions.cy.spec.jsindex db5347fdced..0d0c581ea36 100644--- a/e2e/test/scenarios/sharing/downloads/sharing-download-reproductions.cy.spec.js+++ b/e2e/test/scenarios/sharing/downloads/sharing-download-reproductions.cy.spec.js@@ -65,7 +65,7 @@ describe("issue 10803", () => {});});-describe.skip("issue 18219", () => {+describe("issue 18219", { tags: "@skip" }, () => {const questionDetails = {name: "18219",query: {diff --git a/e2e/test/scenarios/sharing/subscriptions.cy.spec.js b/e2e/test/scenarios/sharing/subscriptions.cy.spec.jsindex 64be8222c73..58046f9435a 100644--- a/e2e/test/scenarios/sharing/subscriptions.cy.spec.js+++ b/e2e/test/scenarios/sharing/subscriptions.cy.spec.js@@ -133,15 +133,19 @@ describe("scenarios > dashboard > subscriptions", () => {H.popover().isRenderedWithinViewport();});- it.skip("should not send attachments by default if not explicitly selected (metabase#28673)", () => {- openDashboardSubscriptions();- assignRecipient();-- cy.findByLabelText("Attach results").should("not.be.checked");- H.sendEmailAndAssert(- ({ attachments }) => expect(attachments).to.be.empty,- );- });+ it(+ "should not send attachments by default if not explicitly selected (metabase#28673)",+ { tags: "@skip" },+ () => {+ openDashboardSubscriptions();+ assignRecipient();++ cy.findByLabelText("Attach results").should("not.be.checked");+ H.sendEmailAndAssert(+ ({ attachments }) => expect(attachments).to.be.empty,+ );+ },+ );});describe("with existing subscriptions", () => {diff --git a/e2e/test/scenarios/visualizations-charts/bar_chart.cy.spec.js b/e2e/test/scenarios/visualizations-charts/bar_chart.cy.spec.jsindex eca1da4bf61..361ef6a4117 100644--- a/e2e/test/scenarios/visualizations-charts/bar_chart.cy.spec.js+++ b/e2e/test/scenarios/visualizations-charts/bar_chart.cy.spec.js@@ -816,206 +816,214 @@ describe("scenarios > visualizations > bar chart", () => {H.echartsTriggerBlur();});- it.skip("should allow grouping series into a single 'Other' series", () => {- const AK_SERIES_COLOR = "#509EE3";+ it(+ "should allow grouping series into a single 'Other' series",+ { tags: "@skip" },+ () => {+ const AK_SERIES_COLOR = "#509EE3";- const USER_STATE_FIELD_REF = [- "field",- PEOPLE.STATE,- { "source-field": ORDERS.USER_ID },- ];- const ORDER_CREATED_AT_FIELD_REF = [- "field",- ORDERS.CREATED_AT,- { "temporal-unit": "month" },- ];+ const USER_STATE_FIELD_REF = [+ "field",+ PEOPLE.STATE,+ { "source-field": ORDERS.USER_ID },+ ];+ const ORDER_CREATED_AT_FIELD_REF = [+ "field",+ ORDERS.CREATED_AT,+ { "temporal-unit": "month" },+ ];++ function setMaxCategories(value, { viaBreakoutSettings = false } = {}) {+ if (viaBreakoutSettings) {+ H.leftSidebar().findByTestId("settings-STATE").click();+ } else {+ H.leftSidebar().findByLabelText("Other series settings").click();+ }+ H.popover()+ .findByTestId("graph-max-categories-input")+ .type(`{selectAll}${value}`)+ .blur();+ cy.wait(500); // wait for viz to re-render+ }- function setMaxCategories(value, { viaBreakoutSettings = false } = {}) {- if (viaBreakoutSettings) {- H.leftSidebar().findByTestId("settings-STATE").click();- } else {+ function setOtherCategoryAggregationFn(fnName) {H.leftSidebar().findByLabelText("Other series settings").click();+ H.popover()+ .findByTestId("graph-other-category-aggregation-fn-picker")+ .click();+ // eslint-disable-next-line no-unsafe-element-filtering+ H.popover().last().findByText(fnName).click();}- H.popover()- .findByTestId("graph-max-categories-input")- .type(`{selectAll}${value}`)- .blur();- cy.wait(500); // wait for viz to re-render- }- function setOtherCategoryAggregationFn(fnName) {- H.leftSidebar().findByLabelText("Other series settings").click();- H.popover()- .findByTestId("graph-other-category-aggregation-fn-picker")- .click();- // eslint-disable-next-line no-unsafe-element-filtering- H.popover().last().findByText(fnName).click();- }-- H.visitQuestionAdhoc({- display: "bar",- dataset_query: {- type: "query",- database: SAMPLE_DB_ID,- query: {- "source-table": ORDERS_ID,- aggregation: [["count"]],- breakout: [USER_STATE_FIELD_REF, ORDER_CREATED_AT_FIELD_REF],- filter: [- "and",- [- "between",- ORDER_CREATED_AT_FIELD_REF,- "2022-09-01T00:00Z",- "2023-02-01T00:00Z",- ],- [- "=",- USER_STATE_FIELD_REF,- "AK",- "AL",- "AR",- "AZ",- "CA",- "CO",- "CT",- "DE",- "FL",- "GA",- "IA",- "ID",- "IL",- "KY",+ H.visitQuestionAdhoc({+ display: "bar",+ dataset_query: {+ type: "query",+ database: SAMPLE_DB_ID,+ query: {+ "source-table": ORDERS_ID,+ aggregation: [["count"]],+ breakout: [USER_STATE_FIELD_REF, ORDER_CREATED_AT_FIELD_REF],+ filter: [+ "and",+ [+ "between",+ ORDER_CREATED_AT_FIELD_REF,+ "2022-09-01T00:00Z",+ "2023-02-01T00:00Z",+ ],+ [+ "=",+ USER_STATE_FIELD_REF,+ "AK",+ "AL",+ "AR",+ "AZ",+ "CA",+ "CO",+ "CT",+ "DE",+ "FL",+ "GA",+ "IA",+ "ID",+ "IL",+ "KY",+ ],],- ],+ },},- },- });-- // Enable 'Other' series- H.openVizSettingsSidebar();- H.leftSidebar().findByTestId("settings-STATE").click();- H.popover().findByLabelText("Enforce maximum number of series").click();-- // Test 'Other' series renders- H.otherSeriesChartPaths().should("have.length", 6);-- // Test drill-through is disabled for 'Other' series- H.otherSeriesChartPaths().first().click();- cy.findByTestId("click-actions-view").should("not.exist");-- // Test drill-through is enabled for regular series- H.chartPathWithFillColor(AK_SERIES_COLOR).first().click();- cy.findByTestId("click-actions-view").should("exist");-- // Test legend and series visibility toggling- H.queryBuilderMain()- .findAllByTestId("legend-item")- .should("have.length", 9)- .last()- .as("other-series-legend-item");- cy.get("@other-series-legend-item").findByLabelText("Hide series").click();- H.otherSeriesChartPaths().should("have.length", 0);- cy.get("@other-series-legend-item").findByLabelText("Show series").click();- H.otherSeriesChartPaths().should("have.length", 6);-- // Test tooltips- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Other", value: "9" }] });- H.otherSeriesChartPaths().first().realHover();- H.assertEChartsTooltip({- header: "September 2022",- rows: [- { name: "IA", value: "3" },- { name: "KY", value: "2" },- { name: "FL", value: "1" },- { name: "GA", value: "1" },- { name: "ID", value: "1" },- { name: "IL", value: "1" },- { name: "Total", value: "9" },- ],- });+ });- // Test "graph.max_categories" change- setMaxCategories(4);- H.queryBuilderMain().click(); // close popover- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.echartsTooltip().find("tr").should("have.length", 5);- H.queryBuilderMain()- .findAllByTestId("legend-item")- .should("have.length", 5);-- // Test can move series in/out of "Other" series- H.moveDnDKitElement(H.getDraggableElements().eq(3), { vertical: 150 }); // Move AZ into "Other"- H.moveDnDKitElement(H.getDraggableElements().eq(6), { vertical: -150 }); // Move CT out of "Other"-- H.queryBuilderMain()- .findAllByTestId("legend-item")- .should("have.length", 5);- H.queryBuilderMain()- .findAllByTestId("legend-item")- .contains("AZ")- .should("not.exist");- H.queryBuilderMain()- .findAllByTestId("legend-item")- .contains("CT")- .should("exist");-- // Test "graph.max_categories" removes "Other" altogether- setMaxCategories(0);- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.echartsTooltip().find("tr").should("have.length", 14);- H.queryBuilderMain()- .findAllByTestId("legend-item")- .should("have.length", 14);- H.otherSeriesChartPaths().should("not.exist");- setMaxCategories(8, { viaBreakoutSettings: true });-- // Test "graph.other_category_aggregation_fn" for native queries- H.openNotebook();- H.queryBuilderHeader().button("View SQL").click();- cy.findByTestId("native-query-preview-sidebar")- .button("Convert this question to SQL")- .click();- cy.wait("@dataset");- H.queryBuilderMain().findByTestId("visibility-toggler").click();+ // Enable 'Other' series+ H.openVizSettingsSidebar();+ H.leftSidebar().findByTestId("settings-STATE").click();+ H.popover().findByLabelText("Enforce maximum number of series").click();++ // Test 'Other' series renders+ H.otherSeriesChartPaths().should("have.length", 6);++ // Test drill-through is disabled for 'Other' series+ H.otherSeriesChartPaths().first().click();+ cy.findByTestId("click-actions-view").should("not.exist");++ // Test drill-through is enabled for regular series+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().click();+ cy.findByTestId("click-actions-view").should("exist");++ // Test legend and series visibility toggling+ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .should("have.length", 9)+ .last()+ .as("other-series-legend-item");+ cy.get("@other-series-legend-item")+ .findByLabelText("Hide series")+ .click();+ H.otherSeriesChartPaths().should("have.length", 0);+ cy.get("@other-series-legend-item")+ .findByLabelText("Show series")+ .click();+ H.otherSeriesChartPaths().should("have.length", 6);++ // Test tooltips+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Other", value: "9" }] });+ H.otherSeriesChartPaths().first().realHover();+ H.assertEChartsTooltip({+ header: "September 2022",+ rows: [+ { name: "IA", value: "3" },+ { name: "KY", value: "2" },+ { name: "FL", value: "1" },+ { name: "GA", value: "1" },+ { name: "ID", value: "1" },+ { name: "IL", value: "1" },+ { name: "Total", value: "9" },+ ],+ });- H.openVizSettingsSidebar();- setOtherCategoryAggregationFn("Average");+ // Test "graph.max_categories" change+ setMaxCategories(4);+ H.queryBuilderMain().click(); // close popover+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.echartsTooltip().find("tr").should("have.length", 5);+ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .should("have.length", 5);++ // Test can move series in/out of "Other" series+ H.moveDnDKitElement(H.getDraggableElements().eq(3), { vertical: 150 }); // Move AZ into "Other"+ H.moveDnDKitElement(H.getDraggableElements().eq(6), { vertical: -150 }); // Move CT out of "Other"++ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .should("have.length", 5);+ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .contains("AZ")+ .should("not.exist");+ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .contains("CT")+ .should("exist");- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Other", value: "1.5" }] });+ // Test "graph.max_categories" removes "Other" altogether+ setMaxCategories(0);+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.echartsTooltip().find("tr").should("have.length", 14);+ H.queryBuilderMain()+ .findAllByTestId("legend-item")+ .should("have.length", 14);+ H.otherSeriesChartPaths().should("not.exist");+ setMaxCategories(8, { viaBreakoutSettings: true });++ // Test "graph.other_category_aggregation_fn" for native queries+ H.openNotebook();+ H.queryBuilderHeader().button("View SQL").click();+ cy.findByTestId("native-query-preview-sidebar")+ .button("Convert this question to SQL")+ .click();+ cy.wait("@dataset");+ H.queryBuilderMain().findByTestId("visibility-toggler").click();- H.otherSeriesChartPaths().first().realHover();- H.assertEChartsTooltip({- header: "September 2022",- rows: [- { name: "IA", value: "3" },- { name: "KY", value: "2" },- { name: "FL", value: "1" },- { name: "GA", value: "1" },- { name: "ID", value: "1" },- { name: "IL", value: "1" },- { name: "Average", value: "1.5" },- ],- });+ H.openVizSettingsSidebar();+ setOtherCategoryAggregationFn("Average");++ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Other", value: "1.5" }] });++ H.otherSeriesChartPaths().first().realHover();+ H.assertEChartsTooltip({+ header: "September 2022",+ rows: [+ { name: "IA", value: "3" },+ { name: "KY", value: "2" },+ { name: "FL", value: "1" },+ { name: "GA", value: "1" },+ { name: "ID", value: "1" },+ { name: "IL", value: "1" },+ { name: "Average", value: "1.5" },+ ],+ });- setOtherCategoryAggregationFn("Min");+ setOtherCategoryAggregationFn("Min");- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Other", value: "1" }] });+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Other", value: "1" }] });- H.otherSeriesChartPaths().first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Min", value: "1" }] });+ H.otherSeriesChartPaths().first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Min", value: "1" }] });- setOtherCategoryAggregationFn("Max");+ setOtherCategoryAggregationFn("Max");- H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Other", value: "3" }] });+ H.chartPathWithFillColor(AK_SERIES_COLOR).first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Other", value: "3" }] });- H.otherSeriesChartPaths().first().realHover();- H.assertEChartsTooltip({ rows: [{ name: "Max", value: "3" }] });- });+ H.otherSeriesChartPaths().first().realHover();+ H.assertEChartsTooltip({ rows: [{ name: "Max", value: "3" }] });+ },+ );it("should format goal tooltip value as a percent when the Stacking option is 'Stack - 100%'", () => {H.visitQuestionAdhoc({diff --git a/e2e/test/scenarios/visualizations-charts/line-bar-tooltips.cy.spec.js b/e2e/test/scenarios/visualizations-charts/line-bar-tooltips.cy.spec.jsindex 5b214f28334..b33b2cc1640 100644--- a/e2e/test/scenarios/visualizations-charts/line-bar-tooltips.cy.spec.js+++ b/e2e/test/scenarios/visualizations-charts/line-bar-tooltips.cy.spec.js@@ -609,96 +609,100 @@ describe("scenarios > visualizations > line/bar chart > tooltips", () => {// TODO: Fix series have different colors in visualizer because of different// column names in original dashcard and visualizer ("avg" becomes "COLUMN_2" and the color has is different)- it.skip("should show updated column titles in tooltips after editing them via Visualization Options", () => {- // Checking the second datum since the first circle of one series is covered with a circle from the other series- const circleIndex = 1;-- const originalSeriesColors = ["#A989C5", "#88BF4D"];- const addedSeriesColors = ["#509EE3", "#98D9D9"];- const originalAvgSeriesName = "Q1: Average of Total";- const originalCumSumSeriesName = "Q1: Cumulative sum of Quantity";- const updatedOriginalAvgSeriesName = "Q1 Custom 1";- const updatedOriginalCumSumSeriesName = "Q1 Custom 2";- const addedAvgSeriesName = "Q2: Average of Discount";- const addedSumSeriesName = "Q2: Sum of Discount";- const updatedAddedAvgSeriesName = "Q2 Custom 1";- const updatedAddedSumSeriesName = "Q2 Custom 2";-- [...originalSeriesColors, ...addedSeriesColors].forEach((color) => {- showTooltipForCircleInSeries(color, circleIndex);- H.assertEChartsTooltip({- header: "2023",- rows: [- {- color: originalSeriesColors[0],- name: originalAvgSeriesName,- value: "56.86",- },- {- color: originalSeriesColors[1],- name: originalCumSumSeriesName,- value: "17,587",- },- {- color: addedSeriesColors[0],- name: addedAvgSeriesName,- value: "5.41",- },- {- color: addedSeriesColors[1],- name: addedSumSeriesName,- value: "1,953.08",- },- ],+ it(+ "should show updated column titles in tooltips after editing them via Visualization Options",+ { tags: "@skip" },+ () => {+ // Checking the second datum since the first circle of one series is covered with a circle from the other series+ const circleIndex = 1;++ const originalSeriesColors = ["#A989C5", "#88BF4D"];+ const addedSeriesColors = ["#509EE3", "#98D9D9"];+ const originalAvgSeriesName = "Q1: Average of Total";+ const originalCumSumSeriesName = "Q1: Cumulative sum of Quantity";+ const updatedOriginalAvgSeriesName = "Q1 Custom 1";+ const updatedOriginalCumSumSeriesName = "Q1 Custom 2";+ const addedAvgSeriesName = "Q2: Average of Discount";+ const addedSumSeriesName = "Q2: Sum of Discount";+ const updatedAddedAvgSeriesName = "Q2 Custom 1";+ const updatedAddedSumSeriesName = "Q2 Custom 2";++ [...originalSeriesColors, ...addedSeriesColors].forEach((color) => {+ showTooltipForCircleInSeries(color, circleIndex);+ H.assertEChartsTooltip({+ header: "2023",+ rows: [+ {+ color: originalSeriesColors[0],+ name: originalAvgSeriesName,+ value: "56.86",+ },+ {+ color: originalSeriesColors[1],+ name: originalCumSumSeriesName,+ value: "17,587",+ },+ {+ color: addedSeriesColors[0],+ name: addedAvgSeriesName,+ value: "5.41",+ },+ {+ color: addedSeriesColors[1],+ name: addedSumSeriesName,+ value: "1,953.08",+ },+ ],+ });});- });-- H.editDashboard();- H.showDashcardVisualizerModalSettings(0, {- isVisualizerCard: false,- });-- updateColumnTitle(originalAvgSeriesName, updatedOriginalAvgSeriesName);- updateColumnTitle(- originalCumSumSeriesName,- updatedOriginalCumSumSeriesName,- );- updateColumnTitle(addedAvgSeriesName, updatedAddedAvgSeriesName);- updateColumnTitle(addedSumSeriesName, updatedAddedSumSeriesName);-- H.saveDashcardVisualizerModalSettings();- H.saveDashboard();+ H.editDashboard();+ H.showDashcardVisualizerModalSettings(0, {+ isVisualizerCard: false,+ });- [...originalSeriesColors, ...addedSeriesColors].forEach((color) => {- showTooltipForCircleInSeries(color, circleIndex);- H.assertEChartsTooltip({- header: "2023",- rows: [- {- color: originalSeriesColors[0],- name: updatedOriginalAvgSeriesName,- value: "56.86",- },- {- color: originalSeriesColors[1],- name: updatedOriginalCumSumSeriesName,- value: "17,587",- },- {- color: addedSeriesColors[0],- name: updatedAddedAvgSeriesName,- value: "5.41",- },- {- color: addedSeriesColors[1],- name: updatedAddedSumSeriesName,- value: "1,953.08",- },- ],+ updateColumnTitle(originalAvgSeriesName, updatedOriginalAvgSeriesName);+ updateColumnTitle(+ originalCumSumSeriesName,+ updatedOriginalCumSumSeriesName,+ );++ updateColumnTitle(addedAvgSeriesName, updatedAddedAvgSeriesName);+ updateColumnTitle(addedSumSeriesName, updatedAddedSumSeriesName);++ H.saveDashcardVisualizerModalSettings();+ H.saveDashboard();++ [...originalSeriesColors, ...addedSeriesColors].forEach((color) => {+ showTooltipForCircleInSeries(color, circleIndex);+ H.assertEChartsTooltip({+ header: "2023",+ rows: [+ {+ color: originalSeriesColors[0],+ name: updatedOriginalAvgSeriesName,+ value: "56.86",+ },+ {+ color: originalSeriesColors[1],+ name: updatedOriginalCumSumSeriesName,+ value: "17,587",+ },+ {+ color: addedSeriesColors[0],+ name: updatedAddedAvgSeriesName,+ value: "5.41",+ },+ {+ color: addedSeriesColors[1],+ name: updatedAddedSumSeriesName,+ value: "1,953.08",+ },+ ],+ });});- });- });+ },+ );it("should show percent change in tooltip for timeseries axis", () => {testAvgTotalChange(showTooltipForCircleInSeries, "Q1: Average of Total");diff --git a/e2e/test/scenarios/visualizations-charts/pie_chart.cy.spec.js b/e2e/test/scenarios/visualizations-charts/pie_chart.cy.spec.jsindex d15559370c8..dccaaf8929f 100644--- a/e2e/test/scenarios/visualizations-charts/pie_chart.cy.spec.js+++ b/e2e/test/scenarios/visualizations-charts/pie_chart.cy.spec.js@@ -186,34 +186,38 @@ describe("scenarios > visualizations > pie chart", () => {// Skipping since the mousemove trigger flakes too often, and there's already a loki// test to cover truncation- it.skip("should truncate the center dimension label if it overflows", () => {- H.visitQuestionAdhoc({- dataset_query: {- type: "query",- query: {- "source-table": PRODUCTS_ID,- expressions: {- category_foo: [- "concat",- ["field", PRODUCTS.CATEGORY, null],- " the quick brown fox jumps over the lazy dog",- ],+ it(+ "should truncate the center dimension label if it overflows",+ { tags: "@skip" },+ () => {+ H.visitQuestionAdhoc({+ dataset_query: {+ type: "query",+ query: {+ "source-table": PRODUCTS_ID,+ expressions: {+ category_foo: [+ "concat",+ ["field", PRODUCTS.CATEGORY, null],+ " the quick brown fox jumps over the lazy dog",+ ],+ },+ aggregation: [["count"]],+ breakout: [["expression", "category_foo"]],},- aggregation: [["count"]],- breakout: [["expression", "category_foo"]],+ database: SAMPLE_DB_ID,},- database: SAMPLE_DB_ID,- },- display: "pie",- });+ display: "pie",+ });- H.chartPathWithFillColor("#A989C5").as("slice");- cy.get("@slice").trigger("mousemove");+ H.chartPathWithFillColor("#A989C5").as("slice");+ cy.get("@slice").trigger("mousemove");- cy.findByTestId("query-visualization-root")- .findByText("WIDGET THE QUICK BROWN FOX JUMP…")- .should("be.visible");- });+ cy.findByTestId("query-visualization-root")+ .findByText("WIDGET THE QUICK BROWN FOX JUMP…")+ .should("be.visible");+ },+ );it("should add new slices to the chart if they appear in the query result", () => {H.visitQuestionAdhoc({diff --git a/e2e/test/scenarios/visualizations-charts/visualizations-charts-reproductions.cy.spec.js b/e2e/test/scenarios/visualizations-charts/visualizations-charts-reproductions.cy.spec.jsindex 80ade8a82b9..66f8bfd19f2 100644--- a/e2e/test/scenarios/visualizations-charts/visualizations-charts-reproductions.cy.spec.js+++ b/e2e/test/scenarios/visualizations-charts/visualizations-charts-reproductions.cy.spec.js@@ -675,7 +675,7 @@ describe("issue 21665", () => {});});-describe.skip("issue 22527", () => {+describe("issue 22527", { tags: "@skip" }, () => {const questionDetails = {native: {query:diff --git a/e2e/test/scenarios/visualizations-tabular/drillthroughs/chart_drill.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/drillthroughs/chart_drill.cy.spec.jsindex 2153160e288..1538c9fef88 100644--- a/e2e/test/scenarios/visualizations-tabular/drillthroughs/chart_drill.cy.spec.js+++ b/e2e/test/scenarios/visualizations-tabular/drillthroughs/chart_drill.cy.spec.js@@ -274,91 +274,101 @@ describe("scenarios > visualizations > drillthroughs > chart drill", () => {cy.contains("Dominique Leffler");});- it.skip("should drill through a with date filter (metabase#12496)", () => {- H.createQuestion({- name: "Orders by Created At: Week",- query: {- "source-table": ORDERS_ID,- aggregation: [["count"]],- breakout: [["field", ORDERS.CREATED_AT, { "temporal-unit": "week" }]],- },- display: "line",- });-- // Load the question up- cy.visit("/collection/root");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Orders by Created At: Week").click({ force: true });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("January 2025");-- // drill into a recent week- // eslint-disable-next-line no-unsafe-element-filtering- cy.get(".dot").eq(-4).click({ force: true });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("See these Orders").click();-- // check that filter is applied and rows displayed- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Showing 127 rows");-- cy.log("Filter should show the range between two dates");- // Now click on the filter widget to see if the proper parameters got passed in- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains(/^Created At is .*–/).click(); // en-dash to detect date range- });-- it.skip("should drill-through on filtered aggregated results (metabase#13504)", () => {- H.openOrdersTable({ mode: "notebook" });- H.summarize({ mode: "notebook" });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Count of rows").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Pick a column to group by").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Created At").click();-- // add filter: Count > 1- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Filter").click();- H.popover().within(() => {- cy.findByText("Count").click();- cy.findByText("Equal to").click();- });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Greater than").click();- cy.findByPlaceholderText("Enter a number").click().type("1");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Add filter").click();-- H.visualize();-- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Visualization").click();- cy.icon("line").click();- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("Done").click();- cy.log("Mid-point assertion");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Count by Created At: Month");- // at this point, filter is displaying correctly with the name- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Count is greater than 1");+ it(+ "should drill through a with date filter (metabase#12496)",+ { tags: "@skip" },+ () => {+ H.createQuestion({+ name: "Orders by Created At: Week",+ query: {+ "source-table": ORDERS_ID,+ aggregation: [["count"]],+ breakout: [["field", ORDERS.CREATED_AT, { "temporal-unit": "week" }]],+ },+ display: "line",+ });- // drill-through- cy.get(".dot")- .eq(10) // random dot- .click({ force: true });- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("See these Orders").click();+ // Load the question up+ cy.visit("/collection/root");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Orders by Created At: Week").click({ force: true });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("January 2025");- cy.log("Reproduced on 0.34.3, 0.35.4, 0.36.7 and 0.37.0-rc2");- // when the bug is present, filter is missing a name (showing only "is 256")- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.contains("Count is equal to 256");- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText("There was a problem with your question").should("not.exist");- });+ // drill into a recent week+ // eslint-disable-next-line no-unsafe-element-filtering+ cy.get(".dot").eq(-4).click({ force: true });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("See these Orders").click();++ // check that filter is applied and rows displayed+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Showing 127 rows");++ cy.log("Filter should show the range between two dates");+ // Now click on the filter widget to see if the proper parameters got passed in+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains(/^Created At is .*–/).click(); // en-dash to detect date range+ },+ );++ it(+ "should drill-through on filtered aggregated results (metabase#13504)",+ { tags: "@skip" },+ () => {+ H.openOrdersTable({ mode: "notebook" });+ H.summarize({ mode: "notebook" });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Count of rows").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Pick a column to group by").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Created At").click();++ // add filter: Count > 1+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Filter").click();+ H.popover().within(() => {+ cy.findByText("Count").click();+ cy.findByText("Equal to").click();+ });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Greater than").click();+ cy.findByPlaceholderText("Enter a number").click().type("1");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Add filter").click();++ H.visualize();++ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Visualization").click();+ cy.icon("line").click();+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("Done").click();+ cy.log("Mid-point assertion");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Count by Created At: Month");+ // at this point, filter is displaying correctly with the name+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Count is greater than 1");++ // drill-through+ cy.get(".dot")+ .eq(10) // random dot+ .click({ force: true });+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("See these Orders").click();++ cy.log("Reproduced on 0.34.3, 0.35.4, 0.36.7 and 0.37.0-rc2");+ // when the bug is present, filter is missing a name (showing only "is 256")+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.contains("Count is equal to 256");+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText("There was a problem with your question").should(+ "not.exist",+ );+ },+ );it("should display correct value in a tooltip for unaggregated data (metabase#11907)", () => {H.createNativeQuestion(@@ -491,80 +501,84 @@ describe("scenarios > visualizations > drillthroughs > chart drill", () => {});});- it.skip("should drill-through a custom question that joins a native SQL question (metabase#14495)", () => {- // Restrict "normal user" (belongs to the DATA_GROUP) from writing native queries- cy.log("Fetch permissions graph");- cy.request("GET", "/api/permissions/graph", {}).then(- ({ body: { groups, revision } }) => {- // This mutates the original `groups` object => we'll pass it next to the `PUT` request- groups[DATA_GROUP] = {- // database_id = 1 (SAMPLE_DATABASE)- 1: { schemas: "all", native: "none" },- };-- cy.log("Update/save permissions");- cy.request("PUT", "/api/permissions/graph", {- groups,- revision,- });- },- );+ it(+ "should drill-through a custom question that joins a native SQL question (metabase#14495)",+ { tags: "@skip" },+ () => {+ // Restrict "normal user" (belongs to the DATA_GROUP) from writing native queries+ cy.log("Fetch permissions graph");+ cy.request("GET", "/api/permissions/graph", {}).then(+ ({ body: { groups, revision } }) => {+ // This mutates the original `groups` object => we'll pass it next to the `PUT` request+ groups[DATA_GROUP] = {+ // database_id = 1 (SAMPLE_DATABASE)+ 1: { schemas: "all", native: "none" },+ };++ cy.log("Update/save permissions");+ cy.request("PUT", "/api/permissions/graph", {+ groups,+ revision,+ });+ },+ );- H.createNativeQuestion({- name: "14495_SQL",- native: { query: "SELECT * FROM ORDERS", "template-tags": {} },- }).then(({ body: { id: SQL_ID } }) => {- const ALIAS = `Question ${SQL_ID}`;+ H.createNativeQuestion({+ name: "14495_SQL",+ native: { query: "SELECT * FROM ORDERS", "template-tags": {} },+ }).then(({ body: { id: SQL_ID } }) => {+ const ALIAS = `Question ${SQL_ID}`;- // Create a QB question and join it with the previously created native question- H.createQuestion({- name: "14495",- query: {- "source-table": PEOPLE_ID,- joins: [- {- fields: "all",- "source-table": `card__${SQL_ID}`,- condition: [- "=",- ["field", PEOPLE.ID, null],- [- "field",- "ID",- { "base-type": "type/BigInteger", "join-alias": ALIAS },+ // Create a QB question and join it with the previously created native question+ H.createQuestion({+ name: "14495",+ query: {+ "source-table": PEOPLE_ID,+ joins: [+ {+ fields: "all",+ "source-table": `card__${SQL_ID}`,+ condition: [+ "=",+ ["field", PEOPLE.ID, null],+ [+ "field",+ "ID",+ { "base-type": "type/BigInteger", "join-alias": ALIAS },+ ],],- ],- alias: ALIAS,- },- ],- aggregation: [["count"]],- breakout: [- ["field", PEOPLE.CREATED_AT, { "temporal-unit": "month" }],- ],- },- display: "bar",- }).then(({ body: { id: QUESTION_ID } }) => {- cy.intercept("POST", "/api/dataset").as("dataset");-- // Switch to the normal user who has restricted SQL access- cy.signInAsNormalUser();- H.visitQuestion(QUESTION_ID);-- // Initial visualization has rendered and we can now drill-through- cy.findByTestId("query-visualization-root")- .get(".bar")- .eq(4)- .click({ force: true });- cy.findByText("See these People").click();-- // We should see the resulting dataset of that drill-through- cy.wait("@dataset").then((xhr) => {- expect(xhr.response.body.error).not.to.exist;+ alias: ALIAS,+ },+ ],+ aggregation: [["count"]],+ breakout: [+ ["field", PEOPLE.CREATED_AT, { "temporal-unit": "month" }],+ ],+ },+ display: "bar",+ }).then(({ body: { id: QUESTION_ID } }) => {+ cy.intercept("POST", "/api/dataset").as("dataset");++ // Switch to the normal user who has restricted SQL access+ cy.signInAsNormalUser();+ H.visitQuestion(QUESTION_ID);++ // Initial visualization has rendered and we can now drill-through+ cy.findByTestId("query-visualization-root")+ .get(".bar")+ .eq(4)+ .click({ force: true });+ cy.findByText("See these People").click();++ // We should see the resulting dataset of that drill-through+ cy.wait("@dataset").then((xhr) => {+ expect(xhr.response.body.error).not.to.exist;+ });+ cy.findByText("Macy Olson");});- cy.findByText("Macy Olson");});- });- });+ },+ );it("count of rows from drill-down on binned results should match the number of records (metabase#15324)", () => {H.visitQuestionAdhoc({diff --git a/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.jsindex 93701d3f011..3c3e4b4eb37 100644--- a/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js+++ b/e2e/test/scenarios/visualizations-tabular/pivot_tables.cy.spec.js@@ -681,14 +681,18 @@ describe("scenarios > visualizations > pivot tables", { tags: "@slow" }, () => {});// Skipped to avoid flake- it.skip("should display pivot table in an embed preview", () => {- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText(/Embed in your application/).click();- // we use preview endpoints when MB is iframed in itself- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage- cy.findByText(test.subject);- H.getIframeBody().within(assertOnPivotFields);- });+ it(+ "should display pivot table in an embed preview",+ { tags: "@skip" },+ () => {+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText(/Embed in your application/).click();+ // we use preview endpoints when MB is iframed in itself+ // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage+ cy.findByText(test.subject);+ H.getIframeBody().within(assertOnPivotFields);+ },+ );it("should display pivot table in an embed URL", () => {cy.findByTestId("pivot-table").should("be.visible");@@ -742,35 +746,39 @@ describe("scenarios > visualizations > pivot tables", { tags: "@slow" }, () => {H.popover().findByText(HINT_TEXT).should("not.exist");});- it.skip("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],- ],+ 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",},- type: "query",- },- display: "pivot",- visualization_settings: {},- }).then(({ body: { id: QUESTION_ID } }) => {- cy.signIn("nodata");- H.visitQuestion(QUESTION_ID);- });+ 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");- });+ // 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");+ },+ );it("should work with custom mapping of display values (metabase#14985)", () => {cy.intercept("POST", "/api/dataset/pivot").as("datasetPivot");diff --git a/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.jsindex 43cde5ad39a..de51c1ec5e7 100644--- a/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js+++ b/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js@@ -250,7 +250,7 @@ describe("issue 18976, 18817", () => {});});-describe.skip("issue 19373", () => {+describe("issue 19373", { tags: "@skip" }, () => {const questiondDetails = {name: "Products, Distinct values of Rating, Grouped by Category and Created At (year)",query: {@@ -638,7 +638,7 @@ describe("issue 37726", () => {});// unskip once metabase#42049 is addressed-describe.skip("issue 42049", () => {+describe("issue 42049", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();@@ -827,7 +827,7 @@ describe("issue 14148", { tags: "@external" }, () => {});});-describe.skip("issue 25415", () => {+describe("issue 25415", { tags: "@skip" }, () => {beforeEach(() => {H.restore();cy.signInAsAdmin();