2026-05-29 22:59:00 +08:00
|
|
|
import { defineConfig } from '@playwright/test';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './test',
|
|
|
|
|
testMatch: '**/*.spec.js',
|
|
|
|
|
use: {
|
2026-06-12 01:45:25 +08:00
|
|
|
baseURL: 'http://127.0.0.1:8085',
|
2026-05-29 22:59:00 +08:00
|
|
|
},
|
|
|
|
|
webServer: {
|
2026-06-12 01:45:25 +08:00
|
|
|
command: 'npx vite --port 8085 --strictPort --host 127.0.0.1',
|
|
|
|
|
url: 'http://127.0.0.1:8085',
|
2026-05-29 22:59:00 +08:00
|
|
|
timeout: 120000,
|
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
|
},
|
|
|
|
|
});
|