Skip to content

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

Adjust sample apps setup (#64274)

Timofey Kachalov7e4dfde94fa9
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.js
index d7f5928cafb..6a9ba075f37 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
@@ -23,8 +23,8 @@ if (!BASE_ENV.PREMIUM_EMBEDDING_TOKEN) {
}
const BASE_SETUP_CONFIG = {
- "docker-up-command": "yarn docker:up",
- "docker-down-command": "yarn docker:down",
+ "docker-up-command": "yarn docker:local-dist:up",
+ "docker-down-command": "yarn docker:rm",
"docker-env-example-path": ".env.docker.example",
"docker-env-path": ".env.docker",
defaultBranch: BRANCH_NAME,
diff --git a/e2e/runner/embedding-sdk/sample-apps/helpers/copy-shoppy-metabase-app-db-dump.ts b/e2e/runner/embedding-sdk/sample-apps/helpers/copy-shoppy-metabase-app-db-dump.ts
index 0fee287b6cf..ce7b430b9cd 100644
--- a/e2e/runner/embedding-sdk/sample-apps/helpers/copy-shoppy-metabase-app-db-dump.ts
+++ b/e2e/runner/embedding-sdk/sample-apps/helpers/copy-shoppy-metabase-app-db-dump.ts
@@ -3,7 +3,7 @@ import * as path from "path";
import { E2E_TMP_FOLDER_PATH } from "../constants/e2e-tmp-folder-path";
-const LOCAL_DIST_PATH = "./local-dist";
+const METABASE_FOLDER_PATH = "./metabase";
// See `docs/developers-guide/e2e-tests.md` for more info
export function copyShoppyMetabaseAppDBDump(rootPath: string) {
@@ -12,11 +12,11 @@ export function copyShoppyMetabaseAppDBDump(rootPath: string) {
"db_dumps/shoppy_metabase_app_db_dump.sql",
);
- // The dump must be copied to the Shoppy's `local-dist` directory.
+ // The dump must be copied to the Shoppy's `metabase` directory.
// After that it will be used by the Shoppy's Docker container when it is built and started.
const destinationPath = path.join(
rootPath,
- LOCAL_DIST_PATH,
+ METABASE_FOLDER_PATH,
"metabase_dump.sql",
);