Skip to content

Commit

Permalink
Update config reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 25, 2024
1 parent 52441e2 commit 574011d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ node_modules
## UI Tests
/tests/UI/.env
/tests/UI/node_modules/
/tests/UI/report.json
/tests/UI/reports/
10 changes: 2 additions & 8 deletions tests/UI/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ loadGlobal();
*/
export default defineConfig({
testDir: './',
/* Run tests in files in parallel */
/* Run tests in files in serial */
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
Expand All @@ -90,17 +90,11 @@ export default defineConfig({
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
['list', { printSteps: true }],
['json', { outputFolder: 'reports' }],
['json', { outputFile: 'report.json' }],
['html', { outputFolder: 'reports' }],
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',

/* Capture screenshot after each test failure */
screenshot: 'only-on-failure',
},
Expand Down

0 comments on commit 574011d

Please sign in to comment.