Files
pocket-id-pocket-id/frontend/playwright.config.ts

31 lines
791 B
TypeScript
Raw Normal View History

2024-08-12 11:00:25 +02:00
import { defineConfig, devices } from '@playwright/test';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
outputDir: './tests/.output',
timeout: 10000,
testDir: './tests',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI
? [['html', { outputFolder: 'tests/.report' }], ['github']]
2024-10-25 22:48:34 +02:00
: [['line'], ['html', { open: 'never', outputFolder: 'tests/.report' }]],
2024-08-12 11:00:25 +02:00
use: {
baseURL: 'http://localhost',
video: 'retain-on-failure',
trace: 'on-first-retry'
},
projects: [
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], storageState: 'tests/.auth/user.json' },
dependencies: ['setup']
}
]
});