align confirmation dashboard test
This commit is contained in:
parent
321c1b7bb0
commit
f7899a9b02
1 changed files with 5 additions and 1 deletions
|
|
@ -9,6 +9,10 @@ describe('email confirmation', () => {
|
|||
statusCode: 401,
|
||||
body: { error: 'unauthenticated' },
|
||||
}).as('me')
|
||||
cy.intercept('GET', '**/api/sets', {
|
||||
statusCode: 200,
|
||||
body: { sets: [] },
|
||||
})
|
||||
})
|
||||
|
||||
it('chooses a password, confirms the account, and opens the dashboard', () => {
|
||||
|
|
@ -31,7 +35,7 @@ describe('email confirmation', () => {
|
|||
cy.wait('@confirmEmail')
|
||||
|
||||
cy.location('pathname').should('equal', '/dashboard')
|
||||
cy.get('h1').should('have.text', 'Your next step starts here.')
|
||||
cy.get('h1').should('have.text', 'Available sets')
|
||||
})
|
||||
|
||||
it('validates password length and confirmation before submitting', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue