mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Playwright] Change js to ts
This commit is contained in:
committed by
Aaro Koivukangas
parent
d0b85c0722
commit
17cdcc0800
@@ -0,0 +1,23 @@
|
||||
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'] },
|
||||
},
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user