Skip to content

Commit 5c5c41a

Browse files
committed
fix playwright tests
1 parent 69853b4 commit 5c5c41a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ jobs:
2020
- name: Install Playwright Browsers
2121
run: npx playwright install --with-deps
2222
working-directory: crates/rust-sample-wallet
23-
- name: Write project ID
24-
run: echo ${{ vars.REOWN_PROJECT_ID }} > crates/rust-sample-wallet/.project-id
2523
- name: Build app
2624
run: trunk build
25+
env:
26+
REOWN_PROJECT_ID: ${{ vars.REOWN_PROJECT_ID }}
2727
working-directory: crates/rust-sample-wallet
2828
- name: Run Playwright tests
2929
run: npx playwright test
3030
working-directory: crates/rust-sample-wallet
31+
env:
32+
REOWN_PROJECT_ID: ${{ vars.REOWN_PROJECT_ID }}
3133
- uses: actions/upload-artifact@v4
3234
if: ${{ !cancelled() }}
3335
with:

crates/rust-sample-wallet/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig({
2929
baseURL: 'http://127.0.0.1:8080',
3030

3131
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
32-
trace: 'on-first-retry',
32+
trace: 'on',
3333
},
3434

3535
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)