test today's dashboard work
This commit is contained in:
parent
483ca6fc1d
commit
1c83eb1b84
5 changed files with 184 additions and 3 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue