test today's dashboard work

This commit is contained in:
Yisroel Baum 2026-08-15 21:54:42 +03:00
parent 483ca6fc1d
commit 1c83eb1b84
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 184 additions and 3 deletions

View file

@ -17,6 +17,12 @@ describe('email confirmation', () => {
statusCode: 200,
body: { schedules: [] },
})
cy.intercept('GET', '**/api/assignments?date=*', (request) => {
request.reply({
statusCode: 200,
body: { date: request.query.date, assignments: [] },
})
})
})
it('chooses a password, confirms the account, and opens the dashboard', () => {
@ -39,7 +45,7 @@ describe('email confirmation', () => {
cy.wait('@confirmEmail')
cy.location('pathname').should('equal', '/dashboard')
cy.get('h1').should('have.text', 'Available sets')
cy.get('#sets-heading').should('have.text', 'Available sets')
})
it('validates password length and confirmation before submitting', () => {