Files
huike-e2e-moicen/playwright.config.ts
T
weli df645b70a7 test: revert workers to 1 to avoid login concurrency
All login-based tests share MOICEN_E2E_UNIONID and cannot run in
parallel without interfering with each other's session state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 16:36:58 +08:00

20 lines
496 B
TypeScript

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',
testIgnore: ['**/admin_debug.spec.ts'],
timeout: 120_000,
workers: 1,
expect: { timeout: 30_000 },
use: {
baseURL:
process.env.HUIKE_FRONT_BASE_URL || 'https://music-room.moicen.com',
trace: 'on-first-retry',
},
reporter: [['list']],
});