Register PostNord shipments, admin notes, and guarded status transitions with customer emails. Expandable admin UI, V11 migration, serial E2E suite, and AGENTS.md Docker-only E2E guidance. Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
933 B
TypeScript
43 lines
933 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
const isCI = !!process.env.PLAYWRIGHT_BASE_URL
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
timeout: 30_000,
|
|
retries: 0,
|
|
use: {
|
|
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000',
|
|
headless: true,
|
|
},
|
|
...(isCI
|
|
? {}
|
|
: {
|
|
webServer: {
|
|
command: 'npm run dev',
|
|
port: 3000,
|
|
reuseExistingServer: true,
|
|
timeout: 30_000,
|
|
},
|
|
}),
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
testIgnore: [
|
|
'**/deferred-payment-admin.spec.ts',
|
|
'**/admin-fulfillment.spec.ts',
|
|
],
|
|
use: { browserName: 'chromium' },
|
|
},
|
|
{
|
|
name: 'chromium-serial',
|
|
testMatch: [
|
|
'**/deferred-payment-admin.spec.ts',
|
|
'**/admin-fulfillment.spec.ts',
|
|
],
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
use: { browserName: 'chromium' },
|
|
},
|
|
],
|
|
})
|