align confirmation dashboard test

This commit is contained in:
Yisroel Baum 2026-08-03 22:24:01 +03:00
parent 321c1b7bb0
commit f7899a9b02
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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', () => {