Files
my-mom-system/erp-frontend-vue/playwright.config.ts
panchengyong 283f727857 feat(erp-frontend-vue): add Playwright E2E tests and update layout
Add Playwright configuration and E2E specs for key production, purchasing, and warehouse flows, and update layout/login to align with the new testing setup.

Made-with: Cursor
2026-03-02 21:44:03 +08:00

24 lines
474 B
TypeScript

import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests',
timeout: 60 * 1000,
expect: {
timeout: 5 * 1000
},
use: {
baseURL: process.env.ERP_BASE_URL || 'http://localhost:5173',
headless: true,
viewport: { width: 1440, height: 900 },
ignoreHTTPSErrors: true,
trace: 'on-first-retry'
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
]
})