test: fix login command issue
This commit is contained in:
parent
838a65bff8
commit
90866ee4e2
|
|
@ -23,6 +23,5 @@ Cypress.Commands.add('login', (username = 'plumrx') => {
|
|||
cy.get('[type="password"]').type('12345678')
|
||||
cy.get('[type="submit"]').contains('Sign in').click()
|
||||
|
||||
cy.get('li.nav-item:last')
|
||||
.should('contain.text', username)
|
||||
cy.url().should('match', /#\/$/)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue