test(e2e): relax home greeting assertions for rotating pool
This commit is contained in:
parent
b9c41e0cbf
commit
65b6e55252
|
|
@ -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}) => {
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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}) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue