test(e2e): relax home greeting assertions for rotating pool

This commit is contained in:
kolaente 2026-04-05 13:51:07 +02:00 committed by kolaente
parent b9c41e0cbf
commit 65b6e55252
3 changed files with 3 additions and 3 deletions

View File

@ -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}) => {

View File

@ -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')
})
})

View File

@ -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}) => {