[Playwright] Change js to ts

This commit is contained in:
Aaro Koivukangas
2026-08-09 01:48:41 +03:00
committed by Aaro Koivukangas
parent d0b85c0722
commit 17cdcc0800
2 changed files with 10 additions and 8 deletions
+23
View File
@@ -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'] },
},
],
})