stabilize today state assertions
This commit is contained in:
parent
1c83eb1b84
commit
e1d2262579
1 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ describe("today's assignments", () => {
|
|||
|
||||
it('shows loading and empty states', () => {
|
||||
cy.intercept('GET', `**/api/assignments?date=${browserToday}`, {
|
||||
delay: 500,
|
||||
delay: 2500,
|
||||
statusCode: 200,
|
||||
body: {
|
||||
date: browserToday,
|
||||
|
|
@ -102,13 +102,13 @@ describe("today's assignments", () => {
|
|||
cy.visit('/dashboard')
|
||||
cy.wait('@me')
|
||||
cy.get('.today-assignments [role="status"]').should(
|
||||
'have.text',
|
||||
'contain.text',
|
||||
"Loading today's assignments...",
|
||||
)
|
||||
cy.wait('@todayAssignments')
|
||||
|
||||
cy.get('.today-assignments [role="status"]').should(
|
||||
'have.text',
|
||||
'contain.text',
|
||||
'Nothing is assigned for today.',
|
||||
)
|
||||
})
|
||||
|
|
@ -150,7 +150,7 @@ describe("today's assignments", () => {
|
|||
cy.wait('@todayAssignments2')
|
||||
|
||||
cy.get('.today-assignments [role="status"]').should(
|
||||
'have.text',
|
||||
'contain.text',
|
||||
'Nothing is assigned for today.',
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue