Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed May 9, 2022
1 parent 453853a commit 6e069cf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_with_trezor-user-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
with:
name: build-artifact
path: build
- run: sudo apt-get install xvfb
# - run: sudo apt-get install xvfb
- run: "./docker/docker-connect-test.sh web -p ${{ inputs.test-pattern }} -i ${{ inputs.methods }}"
# xvfb is required to run karma
# - run: sudo apt-get install xvfb
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.connect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
depends_on:
- trezor-user-env-unix
network_mode: service:trezor-user-env-unix
working_dir: /trezor-suite
working_dir: /connect
command: bash -c "docker/wait-for-env.sh && $TESTS_SCRIPT $TESTS_PATTERN"
volumes:
- ../:/trezor-suite
- ../:/connect
15 changes: 14 additions & 1 deletion karma.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@ module.exports = config => {
useIframe: false,
runInParent: true,
},
browsers: ['Chrome'],
browsers: [
// 'Chrome',
'ChromeHeadlessNoSandbox',
],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
Chrome: {
base: 'Chrome',
flags: ['--no-sandbox'],
},
},
concurrency: 0,
browserNoActivityTimeout: 6000000,
colors: true,
Expand Down
6 changes: 3 additions & 3 deletions tests/common.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ let firmware = process.env.TESTS_FIRMWARE;

if (firmware === '1-latest') {
// firmware = releases1[0].version.join('.');
firmware = releases1[releases1.length - 2].version.join('.');
firmware = releases1[1].version.join('.');
}

if (firmware === '2-latest') {
// firmware = releases2[0].version.join('.');
firmware = releases2[releases2.length - 2].version.join('.');
firmware = releases2[1].version.join('.');
}

if (!firmware) {
// fallback to the latest officially release model T firmware
// firmware = releases2[0].version.join('.');

firmware = releases2[releases2.length - 2].version.join('.');
firmware = releases2[1].version.join('.');
}

const wait = ms =>
Expand Down

0 comments on commit 6e069cf

Please sign in to comment.