diff options
Diffstat (limited to 'e2e/playwright-performance.config.js')
-rw-r--r-- | e2e/playwright-performance.config.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/e2e/playwright-performance.config.js b/e2e/playwright-performance.config.js new file mode 100644 index 000000000..de79304f1 --- /dev/null +++ b/e2e/playwright-performance.config.js @@ -0,0 +1,43 @@ +/* eslint-disable no-undef */ +// playwright.config.js +// @ts-check + +const CI = process.env.CI === 'true'; + +/** @type {import('@playwright/test').PlaywrightTestConfig} */ +const config = { + retries: 1, //Only for debugging purposes because trace is enabled only on first retry + testDir: 'tests/performance/', + timeout: 60 * 1000, + workers: 1, //Only run in serial with 1 worker + webServer: { + command: 'cross-env NODE_ENV=test npm run start', + url: 'http://localhost:8080/#', + timeout: 200 * 1000, + reuseExistingServer: !CI + }, + use: { + browserName: "chromium", + baseURL: 'http://localhost:8080/', + headless: CI, //Only if running locally + ignoreHTTPSErrors: true, + screenshot: 'off', + trace: 'on-first-retry', + video: 'off' + }, + projects: [ + { + name: 'chrome', + use: { + browserName: 'chromium' + } + } + ], + reporter: [ + ['list'], + ['junit', { outputFile: 'test-results/results.xml' }], + ['json', { outputFile: 'test-results/results.json' }] + ] +}; + +module.exports = config; |