2026-04-26 17:01:52 +08:00
|
|
|
import path from 'node:path';
|
|
|
|
|
import { config as loadEnv } from 'dotenv';
|
|
|
|
|
import { defineConfig } from '@playwright/test';
|
|
|
|
|
|
|
|
|
|
loadEnv({ path: path.join(__dirname, '.env.e2e') });
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './tests',
|
2026-04-28 11:53:48 +08:00
|
|
|
testIgnore: ['**/admin_debug.spec.ts'],
|
2026-04-26 17:01:52 +08:00
|
|
|
timeout: 120_000,
|
2026-05-01 16:36:58 +08:00
|
|
|
workers: 1,
|
2026-04-26 17:01:52 +08:00
|
|
|
expect: { timeout: 30_000 },
|
|
|
|
|
use: {
|
|
|
|
|
baseURL:
|
|
|
|
|
process.env.HUIKE_FRONT_BASE_URL || 'https://music-room.moicen.com',
|
|
|
|
|
trace: 'on-first-retry',
|
|
|
|
|
},
|
|
|
|
|
reporter: [['list']],
|
|
|
|
|
});
|