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
Wait for the content-translation dictionary in the SDK rerender spec (#81352)
Sébastiene56d3de79465
diff --git a/e2e/test-component/scenarios/embedding-sdk/content-translations-rerender-reproduction.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/content-translations-rerender-reproduction.cy.spec.tsxindex 4d7169e63d8..974f84be47e 100644--- a/e2e/test-component/scenarios/embedding-sdk/content-translations-rerender-reproduction.cy.spec.tsx+++ b/e2e/test-component/scenarios/embedding-sdk/content-translations-rerender-reproduction.cy.spec.tsx@@ -27,6 +27,16 @@ describe("scenarios > embedding-sdk > content-translations-rerender-reproduction};const mountEditor = () => {+ // The German dictionary is only fetched once the SDK has authenticated,+ // loaded its settings and initialized the content-translation plugin. The+ // app renders untranslated until then, so the assertions below have to wait+ // for this request rather than for the static German label alone.+ cy.intercept({+ method: "GET",+ pathname: "/api/ee/content-translation/dictionary",+ query: { locale: "de" },+ }).as("germanDictionary");+mockAuthProviderAndJwtSignIn();mountSdkContent(@@ -40,6 +50,8 @@ describe("scenarios > embedding-sdk > content-translations-rerender-reproduction},);+ cy.wait("@germanDictionary", { timeout: 30000 });+getSdkRoot().contains("Wähle deine Start-Daten");};