oh-my-muse/muse-admin/playwright.config.ts

27 lines
563 B
TypeScript

import { defineConfig, devices } from 'playwright/test';
export default defineConfig({
expect: {
timeout: 10_000,
},
testDir: './apps/web-antd/e2e',
timeout: 60_000,
use: {
baseURL: 'http://127.0.0.1:5667',
trace: 'retain-on-failure',
},
webServer: {
command:
'pnpm --filter @vben/web-antd run dev --host 127.0.0.1 --port 5667',
reuseExistingServer: true,
timeout: 120_000,
url: 'http://127.0.0.1:5667',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});