Skip to content

Commit c218b84

Browse files
committed
feat(e2e): Debuging PW web tests on CI
1 parent 2377817 commit c218b84

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/test-suite-web-e2e-pw.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999
# - TEST_GROUP: "@group=device-management"
100100
# CONTAINERS: "trezor-user-env-unix"
101101
# CYPRESS_USE_TREZOR_USER_ENV_BRIDGE: "1"
102-
- TEST_GROUP: "@group=settings"
103-
CONTAINERS: "trezor-user-env-unix"
104-
CYPRESS_USE_TREZOR_USER_ENV_BRIDGE: "1"
102+
# - TEST_GROUP: "@group=settings"
103+
# CONTAINERS: "trezor-user-env-unix"
104+
# CYPRESS_USE_TREZOR_USER_ENV_BRIDGE: "1"
105105
# - TEST_GROUP: "@group=metadata"
106106
# CONTAINERS: "trezor-user-env-unix"
107107
# CYPRESS_USE_TREZOR_USER_ENV_BRIDGE: "1"
@@ -150,17 +150,19 @@ jobs:
150150
- name: Install Playwright browsers
151151
run: npx playwright install
152152

153+
## MOVE PULL HERE
154+
153155
- name: Run Playwright e2e tests
154156
env:
155157
COMPOSE_FILE: ./docker/docker-compose.suite-ci.yml
156-
BASE_URL: https://dev.suite.sldev.cz/suite-web/feat-parametrize-pw-suite/web/
157-
158+
BASE_URL: https://dev.suite.sldev.cz/suite-web/convert-cy-pw-settings/web/
158159
## reporter url
159160
TRACK_SUITE_URL: https://track-suite-ff9ad9f5b4f6.herokuapp.com
160161
## when debugging or developing tests it does not make sense to have retries,
161162
## in other cases retries are useful to avoid occasional failures due to flaky tests
162163
ALLOW_RETRY: false
163164
TEST_GROUP: ${{ matrix.TEST_GROUP }}
165+
GITHUB_ACTION: true
164166
CI_JOB_ID: ${{ github.run_id }}
165167
CI_COMMIT_SHA: ${{ github.sha }}
166168
CI_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

docker/docker-compose.suite-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ services:
77
- XDG_RUNTIME_DIR=/var/tmp
88
ports:
99
- "9001:9001"
10+
- "9002:9002"
1011
- "21325:21325"
1112
- "21326:21326"
13+
network_mode: bridge # this makes docker reuse existing networks
1214

1315
bitcoin-regtest:
1416
image: ghcr.io/trezor/trezor-user-env-regtest # this is a special image that runs regtest and blockbook
1517
depends_on:
1618
- trezor-user-env-unix
17-
ports:
18-
- "50001:50001"
1919
network_mode: service:trezor-user-env-unix

packages/suite-desktop-core/e2e/support/fixtures.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ const test = base.extend<Fixtures>({
7272
const tracePath = `${testInfo.outputDir}/trace.electron.zip`;
7373
await window.context().tracing.stop({ path: tracePath });
7474
} else {
75-
await page.goto('/');
75+
// eslint-disable-next-line no-console
76+
console.log('Config:', process.env.BASE_URL || 'http://localhost:8000');
77+
await page.goto(process.env.BASE_URL || 'http://localhost:8000');
78+
// await page.goto('/');
7679
await use(page);
7780
}
7881
},

packages/suite-desktop-core/e2e/support/pageActions/onboardingActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class OnboardingActions {
2828
}
2929

3030
async completeOnboarding() {
31-
await this.optionallyDismissFwHashCheckError();
31+
// await this.optionallyDismissFwHashCheckError();
3232
await this.analyticsContinueButton.click();
3333
await this.onboardingContinueButton.click();
3434
await this.onboardingViewOnlySkipButton.click();

0 commit comments

Comments
 (0)