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 the better handling of the missing enterprise token for Sample Apps e2e (#63573)
Timofey Kachalovb5b9bad48621
diff --git a/e2e/runner/embedding-sdk/sample-apps/constants/sample-app-setup-configs.js b/e2e/runner/embedding-sdk/sample-apps/constants/sample-app-setup-configs.jsindex 69d725c36e2..d7f5928cafb 100644--- a/e2e/runner/embedding-sdk/sample-apps/constants/sample-app-setup-configs.js+++ b/e2e/runner/embedding-sdk/sample-apps/constants/sample-app-setup-configs.js@@ -3,12 +3,25 @@ const BRANCH_NAME = "main"; // Affects the `local` testing only. On CI is passedconst BASE_ENV = {WATCH:process.env.SAMPLE_APP_ENVIRONMENT === "development" ? "true" : "false",- PREMIUM_EMBEDDING_TOKEN: process.env.CYPRESS_MB_ALL_FEATURES_TOKEN ?? "",+ PREMIUM_EMBEDDING_TOKEN:+ process.env.CYPRESS_MB_ALL_FEATURES_TOKEN ||+ process.env.CYPRESS_ALL_FEATURES_TOKEN ||+ process.env.MB_ALL_FEATURES_TOKEN ||+ process.env.ENTERPRISE_TOKEN ||+ "",MB_PORT: 4300,CLIENT_PORT: 4400,AUTH_PROVIDER_PORT: 4500,};+console.log(typeof process.env.MB_ALL_FEATURES_TOKEN);++if (!BASE_ENV.PREMIUM_EMBEDDING_TOKEN) {+ throw new Error(+ "Define one of the following environment variables with enterprise token: CYPRESS_MB_ALL_FEATURES_TOKEN, CYPRESS_ALL_FEATURES_TOKEN, MB_ALL_FEATURES_TOKEN, ENTERPRISE_TOKEN",+ );+}+const BASE_SETUP_CONFIG = {"docker-up-command": "yarn docker:up","docker-down-command": "yarn docker:down",diff --git a/enterprise/frontend/src/embedding-sdk-package/dev.md b/enterprise/frontend/src/embedding-sdk-package/dev.mdindex e10feb42c74..a494c095fe0 100644--- a/enterprise/frontend/src/embedding-sdk-package/dev.md+++ b/enterprise/frontend/src/embedding-sdk-package/dev.md@@ -73,6 +73,8 @@ In order to check compatibility between Sample Apps and Embedding SDK, we have a#### Local runs+Define one of the following environment variables with enterprise token: `CYPRESS_MB_ALL_FEATURES_TOKEN`, `CYPRESS_ALL_FEATURES_TOKEN`, `MB_ALL_FEATURES_TOKEN`, `ENTERPRISE_TOKEN`.+To run these tests locally, run:```