18 lines
440 B
TypeScript
18 lines
440 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',
|
||
|
|
timeout: 120_000,
|
||
|
|
expect: { timeout: 30_000 },
|
||
|
|
use: {
|
||
|
|
baseURL:
|
||
|
|
process.env.HUIKE_FRONT_BASE_URL || 'https://music-room.moicen.com',
|
||
|
|
trace: 'on-first-retry',
|
||
|
|
},
|
||
|
|
reporter: [['list']],
|
||
|
|
});
|