mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
chore(e2e): limit traces to CI environments
This commit is contained in:
parent
4b145c82d5
commit
67ef868b91
@ -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 a test failed. See https://playwright.dev/docs/trace-viewer */
|
/* Collect trace when a test failed on the CI. See https://playwright.dev/docs/trace-viewer
|
||||||
trace: 'retain-on-failure',
|
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