feat(testing): Improved debugging dx

This commit is contained in:
Muhammed Mustafa
2022-10-17 23:45:20 +05:30
parent ea8fbd85ec
commit 238c1382bc
4 changed files with 22 additions and 24 deletions

View File

@@ -30,7 +30,6 @@ const config: PlaywrightTestConfig = {
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 2 : 4,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
@@ -39,10 +38,9 @@ const config: PlaywrightTestConfig = {
baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: process.env.CI ? 'on-first-retry': 'on',
trace: process.env.CI ? 'on-first-retry': process.env.TRACE ? 'on' : 'off',
screenshot: 'only-on-failure',
},
/* Configure projects for major browsers */
projects: [
{