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
@@ -95,7 +95,7 @@
>
</div>
<button type="submit" class="auth-button" data-i18n="auth.login_button">Log in</button>
<button type="submit" class="auth-button" id="login-submit" data-i18n="auth.login_button">Log in</button>
</form>
<!-- SSO / OIDC login section (hidden by default, shown dynamically) -->
@@ -28,7 +28,7 @@ test('login with wrong password is rejected', async ({ page }) => {
await page.locator('#login-username').fill(TEST_ADMIN.username);
await page.locator('#login-password').fill('definitely-wrong-password');
await page.locator('#login-panel button[type="submit"]').click();
await page.locator('#login-submit').click();
const loginError = page.locator('#login-error');
await expect(loginError).toBeVisible();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 64 KiB

+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 });