mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 10:18:28 +00:00
Merge pull request #18185 from strapi/chore/e2e-traces
chore(e2e): store test traces for failed tests as GH action artifacts
This commit is contained in:
commit
2d98270c7d
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -177,6 +177,13 @@ jobs:
|
|||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
run: yarn test:e2e --setup --concurrency=1 --project=${{ matrix.project }}
|
run: yarn test:e2e --setup --concurrency=1 --project=${{ matrix.project }}
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: playwright-trace
|
||||||
|
path: test-apps/e2e/**/test-results/**/trace.zip
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
api_ce_pg:
|
api_ce_pg:
|
||||||
if: needs.changes.outputs.backend == 'true'
|
if: needs.changes.outputs.backend == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -36,8 +36,11 @@ const createConfig = ({ port, testDir, appDir }) => ({
|
|||||||
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
||||||
actionTimeout: 0,
|
actionTimeout: 0,
|
||||||
|
|
||||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
/* Collect trace when a test failed on the CI. See https://playwright.dev/docs/trace-viewer
|
||||||
trace: 'off',
|
Until https://github.com/strapi/strapi/issues/18196 is fixed we can't enable this locally,
|
||||||
|
because the Strapi server restarts every time a new file (trace) is created.
|
||||||
|
*/
|
||||||
|
trace: process.env.CI ? 'retain-on-failure' : 'off',
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Configure projects for major browsers */
|
/* Configure projects for major browsers */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user