keepassxc-browser/playwright.config.js

37 lines
852 B
JavaScript
Raw Normal View History

2022-03-18 12:24:01 +00:00
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'),
2022-03-18 14:10:36 +00:00
globalTeardown: require.resolve('./tests/global-teardown'),
2022-03-18 12:24:01 +00:00
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: {
2023-09-16 07:57:42 +00:00
...devices['Desktop Chrome'],
2022-03-18 12:24:01 +00:00
},
},
2022-03-18 14:10:36 +00:00
{
2022-03-18 12:24:01 +00:00
name: 'firefox',
use: {
2023-09-16 07:57:42 +00:00
...devices['Desktop Firefox'],
2022-03-18 12:24:01 +00:00
},
2022-03-18 14:10:36 +00:00
},
2022-03-18 12:24:01 +00:00
],
testMatch: 'content-script-tests.mjs',
2022-03-18 12:24:01 +00:00
};
module.exports = config;