Skip to content

Commit

Permalink
Added deplay to cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
raftmsohani committed Oct 2, 2023
1 parent a5ccafa commit 54bdc62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tdrs-frontend/cypress/e2e/accounts/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Then('{string} sees a Request Access form', (username) => {

Then('{string} can see the hompage', (username) => {
cy.visit('/home')
cy.contains('You have been approved for access to TDP.').should('exist')
cy.wait(2000).then(() => {
cy.contains('You have been approved for access to TDP.').should('exist')
})
})

When('{string} is in begin state', (username) => {
Expand Down

0 comments on commit 54bdc62

Please sign in to comment.