From 69c4311cb02350ee4e5c2b44c463235fa428f4f3 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Ortiz karliatto Date: Wed, 21 Feb 2024 14:15:15 +0100 Subject: [PATCH] chore(docker): add TREZOR_CONNECT_SRC variable --- docker/docker-compose.connect-popup-ci.yml | 1 + docker/docker-compose.connect-popup-test.yml | 1 + docker/docker-connect-popup-test.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/docker/docker-compose.connect-popup-ci.yml b/docker/docker-compose.connect-popup-ci.yml index 36963125444..41b898c7d05 100644 --- a/docker/docker-compose.connect-popup-ci.yml +++ b/docker/docker-compose.connect-popup-ci.yml @@ -22,6 +22,7 @@ services: - CI_JOB_NAME=$CI_JOB_NAME - TEST_FILE=$TEST_FILE - IS_WEBEXTENSION=$IS_WEBEXTENSION + - TREZOR_CONNECT_SRC=$TREZOR_CONNECT_SRC working_dir: /e2e command: bash -c "npx playwright install && yarn workspace @trezor/connect-popup test:e2e $TEST_FILE" volumes: diff --git a/docker/docker-compose.connect-popup-test.yml b/docker/docker-compose.connect-popup-test.yml index 06849e86eb3..495f06c8922 100644 --- a/docker/docker-compose.connect-popup-test.yml +++ b/docker/docker-compose.connect-popup-test.yml @@ -33,6 +33,7 @@ services: - PWDEBUG=console - TEST_FILE=$TEST_FILE - IS_WEBEXTENSION=$IS_WEBEXTENSION + - TREZOR_CONNECT_SRC=$TREZOR_CONNECT_SRC working_dir: /trezor-suite command: bash -c "docker/wait-for-200.sh http://localhost:8088/index.html && yarn workspace @trezor/connect-popup test:e2e $TEST_FILE" volumes: diff --git a/docker/docker-connect-popup-test.sh b/docker/docker-connect-popup-test.sh index 0cead5a89ef..cbe18e71a6c 100755 --- a/docker/docker-connect-popup-test.sh +++ b/docker/docker-connect-popup-test.sh @@ -5,5 +5,6 @@ xhost + LOCAL_USER_ID="$(id -u "$USER")" export LOCAL_USER_ID export TEST_FILE=$1 +export TREZOR_CONNECT_SRC=http://localhost:8088/ docker-compose -f ./docker/docker-compose.connect-popup-test.yml up --build --abort-on-container-exit