[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
+3 -3
View File
@@ -34,9 +34,9 @@
"ci:local": "npm ci && npm ci --prefix services/shared && npm ci --prefix services/frontend && npm ci --prefix services/backend && npm ci --prefix updater/sis-updater-scheduler && npm ci --prefix updater/sis-updater-worker",
"ci:docker": "docker exec oodikone-frontend sh -lc \"npm ci --prefix /opt/app-root/shared && npm ci\" && docker exec oodikone-backend npm ci && docker exec oodikone-updater-scheduler npm ci && docker exec oodikone-updater-worker npm ci",
"ci:both": "npm run ci:local && npm run ci:docker",
"playwright": "playwright test -c playwright.config.js",
"playwright:ui": "playwright test --ui -c playwright.config.js",
"playwright:headed": "playwright test --headed -c playwright.config.js"
"playwright": "playwright test -c playwright.config.ts",
"playwright:ui": "playwright test --ui -c playwright.config.ts",
"playwright:headed": "playwright test --headed -c playwright.config.ts"
},
"repository": {
"type": "git",
@@ -1,16 +1,18 @@
const { defineConfig, devices } = require('@playwright/test')
import { defineConfig, devices } from '@playwright/test'
module.exports = defineConfig({
testDir: './playwright',
testMatch: ['**/*.js'],
export default defineConfig({
testDir: './e2e',
testMatch: ['**/*.spec.ts'],
testIgnore: ['**/support/**', '**/plugins/**'],
timeout: 30_000,
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: [
{