Skip to content

Commit

Permalink
e2e: wait for autofocus to focus the email field in login.cy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Jul 31, 2023
1 parent 8cb5c2e commit 2938e27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/specs/login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('Login test', () => {
it('can login with default user', () => {
cy.visit('/')

cy.focused().should('match', '[type="email"]')
cy.get('[type="email"]').type('[email protected]')
cy.get('[type="password"]').type('test')
cy.get('[type="submit').click()
Expand Down

0 comments on commit 2938e27

Please sign in to comment.