mirror of
https://github.com/enso-org/enso.git
synced 2024-12-30 09:03:33 +03:00
0fc09f8723
- Fix https://github.com/enso-org/cloud-v2/issues/1422 - Show errors on "login" page by switching to custom Form component - Also convert "registration", "reset password" and "forgot password" pages to use the new component - Preserve email when navigating between auth pages # Important Notes None
28 lines
958 B
TypeScript
28 lines
958 B
TypeScript
/** @file Test that emails are preserved when navigating between auth pages. */
|
|
import * as test from '@playwright/test'
|
|
import { VALID_EMAIL, mockAll } from './actions'
|
|
|
|
test.test('preserve email input when changing pages', ({ page }) =>
|
|
mockAll({ page })
|
|
.fillEmail(VALID_EMAIL)
|
|
.goToPage.register()
|
|
.withEmailInput(async (emailInput) => {
|
|
await test.expect(emailInput).toHaveValue(VALID_EMAIL)
|
|
})
|
|
.fillEmail(`2${VALID_EMAIL}`)
|
|
.goToPage.login()
|
|
.withEmailInput(async (emailInput) => {
|
|
await test.expect(emailInput).toHaveValue(`2${VALID_EMAIL}`)
|
|
})
|
|
.fillEmail(`3${VALID_EMAIL}`)
|
|
.goToPage.forgotPassword()
|
|
.withEmailInput(async (emailInput) => {
|
|
await test.expect(emailInput).toHaveValue(`3${VALID_EMAIL}`)
|
|
})
|
|
.fillEmail(`4${VALID_EMAIL}`)
|
|
.goToPage.login()
|
|
.withEmailInput(async (emailInput) => {
|
|
await test.expect(emailInput).toHaveValue(`4${VALID_EMAIL}`)
|
|
}),
|
|
)
|