Skip to content

Commit

Permalink
feat(e2e): Debuging PW web tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vere-Grey committed Dec 3, 2024
1 parent 2377817 commit 380cdbd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-suite-web-e2e-pw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ jobs:
- name: Install Playwright browsers
run: npx playwright install

- name: Print BASE_URL
run: echo $BASE_URL
env:
BASE_URL: https://dev.suite.sldev.cz/suite-web/feat-parametrize-pw-suite/web/

- name: Run Playwright e2e tests
env:
COMPOSE_FILE: ./docker/docker-compose.suite-ci.yml
BASE_URL: https://dev.suite.sldev.cz/suite-web/feat-parametrize-pw-suite/web/

## reporter url
TRACK_SUITE_URL: https://track-suite-ff9ad9f5b4f6.herokuapp.com
## when debugging or developing tests it does not make sense to have retries,
Expand Down
2 changes: 2 additions & 0 deletions packages/suite-desktop-core/e2e/support/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ const test = base.extend<Fixtures>({
const tracePath = `${testInfo.outputDir}/trace.electron.zip`;
await window.context().tracing.stop({ path: tracePath });
} else {
// eslint-disable-next-line no-console
console.log('Fixture BASE_URL:', process.env.BASE_URL);
await page.goto('/');
await use(page);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export class OnboardingActions {
}

async completeOnboarding() {
// eslint-disable-next-line no-console
console.log('Onboarding BASE_URL:', process.env.BASE_URL);
await this.optionallyDismissFwHashCheckError();
await this.analyticsContinueButton.click();
await this.onboardingContinueButton.click();
Expand Down

0 comments on commit 380cdbd

Please sign in to comment.