diff --git a/.github/workflows/deploy-and-e2e.yml b/.github/workflows/deploy-and-e2e.yml index 4aa89ccf..68f1940b 100644 --- a/.github/workflows/deploy-and-e2e.yml +++ b/.github/workflows/deploy-and-e2e.yml @@ -134,6 +134,7 @@ jobs: run: npx playwright test ./e2e/testcases/${{ matrix.test_dir }} env: DOMAIN: '${{ vars.DOMAIN }}' + continue-on-error: true - uses: actions/upload-artifact@v4 if: steps.check-specs.outputs.has_spec_files == 'true' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index bbe1bf3d..ced13979 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -91,6 +91,7 @@ jobs: run: npx playwright test ./e2e/testcases/${{ matrix.test_dir }} env: DOMAIN: '${{ vars.DOMAIN }}' + continue-on-error: true - uses: actions/upload-artifact@v4 if: steps.check-specs.outputs.has_spec_files == 'true' diff --git a/playwright.config.ts b/playwright.config.ts index 1ea7d2b6..18685d40 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -16,7 +16,7 @@ export default defineConfig({ /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ - retries: 0, + retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */