keepassxc-browser/playwright.config.js
Stefan Sundin 957dc2c05b
Cosmetic fixes (#1983)
Cosmetic fixes
2023-09-16 10:57:42 +03:00

36 lines
852 B
JavaScript

const { devices } = require('@playwright/test');
const config = {
testDir: './tests',
timeout: 30 * 1000,
expect: {
timeout: 5000
},
forbidOnly: !!process.env.CI,
globalSetup: require.resolve('./tests/global-setup'),
globalTeardown: require.resolve('./tests/global-teardown'),
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'list',
use: {
actionTimeout: 0,
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
},
},
],
testMatch: 'content-script-tests.mjs',
};
module.exports = config;