Files
Compass/tests/e2e/web/specs/signUp.spec.ts
Okechi Jones-Williams 178dfdc1b7 Continued work on filter tests
Added testid attributes to people page so the info from the results can be accessed
2026-05-28 19:25:37 +01:00

32 lines
1.0 KiB
TypeScript

import {expect, test} from '../fixtures/base'
// test.describe('when given valid input', () => {
// test('placeholder', async () => {})
// })
test.describe('when an error occurs', () => {
test('should disable the button "Next" when the display name field is empty', async ({
specAccount,
app,
}) => {
await app.registerWithEmail(specAccount)
await app.onboarding.clickSkipOnboardingButton()
await app.signUp.fillDisplayName('')
await app.signUp.fillUsername(specAccount.username)
await app.signUp.verifyDisplayNameError()
await expect(app.signUp.nextButtonLocator).toBeDisabled()
})
test('should disable the button "Next" when the username field is empty', async ({
specAccount,
app,
}) => {
await app.registerWithEmail(specAccount)
await app.onboarding.clickSkipOnboardingButton()
await app.signUp.fillDisplayName(specAccount.display_name)
await app.signUp.fillUsername('')
await app.signUp.verifyUsernameError()
await expect(app.signUp.nextButtonLocator).toBeDisabled()
})
})