Run admin-dashboard with other DB/Mailpit specs after parallel tests. Stop admin-dashboard from mutating the sent seed order before fulfillment. Wait longer for backend readiness in the E2E stack. Co-authored-by: Cursor <cursoragent@cursor.com>
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
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',
|
|
'**/admin-dashboard.spec.ts',
|
|
'**/account-settings.spec.ts',
|
|
'**/password-reset.spec.ts',
|
|
],
|
|
use: { browserName: 'chromium' },
|
|
},
|
|
{
|
|
name: 'chromium-serial',
|
|
dependencies: ['chromium'],
|
|
testMatch: [
|
|
'**/admin-fulfillment.spec.ts',
|
|
'**/deferred-payment-admin.spec.ts',
|
|
'**/admin-dashboard.spec.ts',
|
|
'**/account-settings.spec.ts',
|
|
'**/password-reset.spec.ts',
|
|
],
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
use: { browserName: 'chromium' },
|
|
},
|
|
],
|
|
})
|