fix(e2e): 3 CI failures — org-multi-tenant timeout, dual-view events, supervisor path
music-room Playwright (Gitea Actions) / playwright (push) Failing after 22m24s
music-room Playwright (Gitea Actions) / playwright (push) Failing after 22m24s
- org-multi-tenant.spec.ts: goto timeout 60s→120s (same fix as previous) - clazz-dual-view.spec.ts: use toPass to wait for .fc-event re-render after view switch - supervisor-features.spec.ts: navigate to /teacher/home after role selection Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -242,8 +242,10 @@ test.describe('排课双视图切换(阿难账号)', () => {
|
||||
await expect(page.locator('.fc')).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
// 日历仍有事件(说明数据加载正常)
|
||||
const calEvents = await page.locator('.fc-event').count();
|
||||
expect(calEvents).toBeGreaterThan(0);
|
||||
await expect(async () => {
|
||||
const calEvents = await page.locator('.fc-event').count();
|
||||
expect(calEvents).toBeGreaterThan(0);
|
||||
}).toPass({ timeout: 10_000 });
|
||||
|
||||
// 再次切到矩阵
|
||||
await page.locator('.view-toolbar button', { hasText: '矩阵' }).click();
|
||||
|
||||
Reference in New Issue
Block a user