feat: Playwright against deployed music-room (shell + optional unionid chain)

No Rust/Compose; GitHub Actions with MOICEN_E2E_UNIONID secret; dotenv .env.e2e; proxy install script.

Made-with: Cursor
This commit is contained in:
2026-04-26 17:01:52 +08:00
commit c5d054789e
10 changed files with 277 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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']],
});