From 65b6e55252036574ad209d409158cac9bba76cb2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 5 Apr 2026 13:51:07 +0200 Subject: [PATCH] test(e2e): relax home greeting assertions for rotating pool --- frontend/tests/e2e/user/login.spec.ts | 2 +- frontend/tests/e2e/user/openid-login.spec.ts | 2 +- frontend/tests/e2e/user/registration.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/tests/e2e/user/login.spec.ts b/frontend/tests/e2e/user/login.spec.ts index 4f1cbc0d9..57f9c6164 100644 --- a/frontend/tests/e2e/user/login.spec.ts +++ b/frontend/tests/e2e/user/login.spec.ts @@ -45,7 +45,7 @@ test.describe('Login', () => { test('Should log in with the right credentials', async ({page}) => { await page.goto('/login') await login(page) - await expect(page.locator('main h2')).toContainText(`Hi ${credentials.username}!`) + await expect(page.locator('main h2')).toContainText(credentials.username) }) test('Should fail with a bad password', async ({page}) => { diff --git a/frontend/tests/e2e/user/openid-login.spec.ts b/frontend/tests/e2e/user/openid-login.spec.ts index d5015a9cf..27a7d146d 100644 --- a/frontend/tests/e2e/user/openid-login.spec.ts +++ b/frontend/tests/e2e/user/openid-login.spec.ts @@ -15,7 +15,7 @@ test.describe('OpenID Login', () => { // Should redirect back to the app await expect(page).toHaveURL(/\//) - await expect(page.locator('main.app-content .content h2')).toContainText('test!') + await expect(page.locator('main.app-content .content h2')).toContainText('test') await expect(page.locator('.show-tasks h3')).toContainText('Current Tasks') }) }) diff --git a/frontend/tests/e2e/user/registration.spec.ts b/frontend/tests/e2e/user/registration.spec.ts index 84e998ff0..9997bfc7f 100644 --- a/frontend/tests/e2e/user/registration.spec.ts +++ b/frontend/tests/e2e/user/registration.spec.ts @@ -27,7 +27,7 @@ test.describe('Registration', () => { await page.locator('#password').fill(fixture.password) await page.locator('#register-submit').click() await expect(page).toHaveURL('/') - await expect(page.locator('main h2')).toContainText(`Hi ${fixture.username}!`) + await expect(page.locator('main h2')).toContainText(fixture.username) }) test('Should fail', async ({page, apiContext}) => {