Files
KArtSell.Aegis/docs/Design/kbx-foundation-v60-status-canonical-contract-hardening/playwright.config.ts
T
kjh2064 3f293d8aa8
deploy / deploy (push) Successful in 1m52s
deploy / notify (push) Successful in 1s
V13-FE-006: consolidate approved UI and contract hardening
2026-08-13 02:41:00 +09:00

44 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test'
const baseURL = process.env.KBX_E2E_BASE_URL ?? 'http://127.0.0.1:4173'
export default defineConfig({
testDir: './tests/e2e',
timeout: 30_000,
expect: { timeout: 7_500 },
fullyParallel: false,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 2 : undefined,
reporter: process.env.CI ? [['list'], ['html', { open: 'never' }]] : 'list',
use: {
baseURL,
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
webServer: process.env.KBX_E2E_BASE_URL ? undefined : {
command: 'pnpm dev:web:demo',
url: baseURL,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
projects: [
{
name: 'desktop-chromium',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1440, height: 900 },
},
},
{
name: 'wms-mobile-chromium',
testMatch: /wms-.*\.spec\.ts/,
use: {
...devices['Pixel 7'],
viewport: { width: 390, height: 844 },
},
},
],
})