test(end to end): update tests (login page has now login via email)

This commit is contained in:
Edouard Vanbelle
2026-06-02 15:19:45 +02:00
parent 1e13570d02
commit f4362a4832
13 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export async function loginAsAdmin(page: Page) {
await goToLoginPage(page);
await page.locator('#login-username').fill(TEST_ADMIN.username);
await page.locator('#login-password').fill(TEST_ADMIN.password);
await page.locator('#login-panel button[type="submit"]').click();
await page.locator('#login-submit').click();
await expect(page.locator('#sidebar')).toBeVisible({ timeout: 15_000 });
// Wait for the JS app to initialise: avatar vignette present ⟹ click handler attached.
await expect(page.locator('#user-avatar-btn .user-vignette')).toBeAttached({ timeout: 10_000 });