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
Unskip and fix flaky locale test for embedded analytics js (#63518)
Phoomparin Manobe673c477189
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 955bc54d9e6..1756dfbf469 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@@ -161,24 +161,24 @@ H.describeWithSnowplow(suiteTitle, () => {);});- // TODO: fix this flaky test- 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();+ it("localizes the iframe preview when ?locale is passed", () => {+ visitNewEmbedPage({ locale: "fr" });- H.waitForSimpleEmbedIframesToLoad();+ // TODO: update this test once "Exploration" is localized in french.+ getEmbedSidebar().findByText("Exploration").click();- H.getSimpleEmbedIframeContent().within(() => {- cy.log("data picker is localized");- cy.findByText("Choisissez vos données de départ").should("be.visible");- });- },- );+ H.waitForSimpleEmbedIframesToLoad();++ H.getSimpleEmbedIframeContent().within(() => {+ cy.log("data picker is localized");++ cy.findByText("Données", { timeout: 10_000 }).should("be.visible");++ cy.findByText("Choisissez vos données de départ", {+ timeout: 10_000,+ }).should("be.visible");+ });+ });it("should show a fake loading indicator in embed preview", () => {cy.visit("/embed-js");