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
This commit is contained in:
panchengyong
2026-03-02 21:44:03 +08:00
parent e45616a09b
commit 283f727857
16 changed files with 3230 additions and 818 deletions

View File

@@ -0,0 +1,23 @@
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'] }
}
]
})