fix(ci): increase login goto timeout to 120s and fix role switcher skip
music-room Playwright (Gitea Actions) / playwright (push) Failing after 1h5m50s
music-room Playwright (Gitea Actions) / playwright (push) Failing after 1h5m50s
- Increase page.goto timeout from 60s to 120s in all login helpers (9 CI timeout failures were all login page.goto timeouts) - Make clazz-supervisor-matrix switchToRole gracefully skip when role switcher icon is not available (no multi-role user) - Update clazz-scheduling tests to match production UI (no .fc-createClazz-button, use .view-toolbar instead) - Update clazz-ui .fc-toolbar → .view-toolbar selector - Update department test to handle single-dept optional CurrentDepartmentId (multi-org user may not auto-select) - Update teacher-switching tests to match student profile UI (no .current-teacher section) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ test.skip(!moicenUnionid, 'MOICEN_E2E_UNIONID 未设置');
|
||||
|
||||
async function loginAsTeacher(page: any) {
|
||||
const q = new URLSearchParams({ unionid: moicenUnionid!, status: '2' });
|
||||
await page.goto(`/?${q.toString()}`, { waitUntil: 'domcontentloaded', timeout: 60_000 });
|
||||
await page.goto(`/?${q.toString()}`, { waitUntil: 'domcontentloaded', timeout: 120_000 });
|
||||
await expect(page.locator('#app')).toBeVisible({ timeout: 60_000 });
|
||||
|
||||
// Wait up to 15s for role selection dialog (may not appear if already logged in)
|
||||
|
||||
Reference in New Issue
Block a user