Download this file
| 1 | import { defineConfig } from '@playwright/test'; |
| 2 | |
| 3 | const reporter: any[] = [['list']]; |
| 4 | if (process.env.RESULTS_FILE) reporter.push(['json', { outputFile: process.env.RESULTS_FILE }]); |
| 5 | |
| 6 | export default defineConfig({ |
| 7 | testDir: '.', |
| 8 | workers: 4, |
| 9 | retries: 0, |
| 10 | timeout: 30_000, |
| 11 | expect: { timeout: 5_000 }, |
| 12 | reporter, |
| 13 | use: { baseURL: process.env.BASE_URL, browserName: 'chromium', viewport: { width: 1280, height: 720 } }, |
| 14 | projects: [ |
| 15 | { name: 'js-on', use: { javaScriptEnabled: true } }, |
| 16 | { name: 'js-off', use: { javaScriptEnabled: false } }, |
| 17 | ], |
| 18 | }); |
| 19 | |