Skip to content

Commit be443e6

Browse files
committed
tests: retry flaky Playwright tests.
1 parent 43b29d9 commit be443e6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
run-tests:
6161
runs-on: ubuntu-latest
6262
needs: build-simulator
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
6367
steps:
6468
- uses: actions/checkout@v3
6569

@@ -89,7 +93,7 @@ jobs:
8993
- name: Restore executable permission
9094
run: chmod +x simulator-bin/simulator
9195

92-
- name: Run Playwright tests
96+
- name: Run Playwright tests attempt ${{ matrix.attempt }}
9397
env:
9498
SIMULATOR_PATH: ${{ github.workspace }}/simulator-bin/simulator
9599
run: make webe2etest
@@ -98,5 +102,5 @@ jobs:
98102
if: always()
99103
uses: actions/upload-artifact@v4
100104
with:
101-
name: playwright-artifacts
105+
name: playwright-artifacts-${{ matrix.attempt }}
102106
path: frontends/web/test-results/*

frontends/web/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default defineConfig({
3434
},
3535
reporter: [['html', { open: 'never' }], ['list']],
3636
outputDir: 'test-results/',
37+
retries: 3,
3738
projects: [
3839
{
3940
name: 'Chromium',

0 commit comments

Comments
 (0)