Skip to content

Commit

Permalink
test(connect-popup): run methods test on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan authored and mroz22 committed Aug 6, 2024
1 parent 462e45e commit 038a294
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/docker-compose.connect-popup-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
- TEST_FILE=$TEST_FILE
- IS_WEBEXTENSION=$IS_WEBEXTENSION
- CORE_IN_POPUP=$CORE_IN_POPUP
- MOBILE=$MOBILE
- TREZOR_CONNECT_SRC=$TREZOR_CONNECT_SRC
working_dir: /e2e
command: bash -c "npx playwright install && yarn workspace @trezor/connect-popup test:e2e $TEST_FILE"
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.connect-popup-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
- TEST_FILE=$TEST_FILE
- IS_WEBEXTENSION=$IS_WEBEXTENSION
- CORE_IN_POPUP=$CORE_IN_POPUP
- MOBILE=$MOBILE
- 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"
Expand Down
1 change: 1 addition & 0 deletions docker/docker-connect-popup-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export URL=$URL
export TREZOR_CONNECT_SRC=$TREZOR_CONNECT_SRC
export CORE_IN_POPUP=$CORE_IN_POPUP
export IS_WEBEXTENSION=$IS_WEBEXTENSION
export MOBILE=$MOBILE

docker compose -f ./docker/docker-compose.connect-popup-ci.yml up --build --abort-on-container-exit
1 change: 1 addition & 0 deletions docker/docker-connect-popup-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export TEST_FILE=$1
export TREZOR_CONNECT_SRC=http://localhost:8088/
export CORE_IN_POPUP=$CORE_IN_POPUP
export IS_WEBEXTENSION=$IS_WEBEXTENSION
export MOBILE=$MOBILE

docker compose -f ./docker/docker-compose.connect-popup-test.yml up --build --abort-on-container-exit
2 changes: 1 addition & 1 deletion packages/connect-popup/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config: PlaywrightTestConfig = {
headless: process.env.HEADLESS === 'true',
ignoreHTTPSErrors: true,
trace: 'retain-on-failure',
...devices['Desktop Chrome'],
...devices[process.env.MOBILE ? 'Pixel 7' : 'Desktop Chrome'],
},
};
export default config;

0 comments on commit 038a294

Please sign in to comment.