mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-08-01 02:42:05 -04:00
32 lines
1.0 KiB
TypeScript
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()
|
|
})
|
|
})
|