Skip to content

Commit

Permalink
chore: Only set max failures for E2E tests that are running on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia committed Sep 28, 2024
1 parent fe0b9b0 commit f08483e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
name: test-results
path: src/e2e/test-results/
retention-days: 30

- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_pr_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- name: Run Playwright tests
if: github.actor != 'dependabot[bot]'
run: npm run e2e -- --update-snapshots
run: npm run e2e -- --max-failures=1 --update-snapshots
timeout-minutes: 20
env:
E2E_TEST_ENV: local
Expand Down
3 changes: 0 additions & 3 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,

/* Limit the number of failures */
maxFailures: 1,

/* Retry on CI only */
retries: process.env.CI ? 1 : 0,

Expand Down

0 comments on commit f08483e

Please sign in to comment.