mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
24 lines
614 B
TypeScript
24 lines
614 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: ['**/*.spec.ts'],
|
|
testIgnore: ['**/support/**', '**/plugins/**'],
|
|
timeout: 60_000,
|
|
expect: { timeout: 30_000 },
|
|
retries: process.env.CI ? 1 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
use: {
|
|
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000',
|
|
viewport: { width: 1920, height: 1080 },
|
|
trace: 'on-first-retry',
|
|
testIdAttribute: 'data-cy',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
],
|
|
})
|