test: fix login command issue

This commit is contained in:
mutoe 2021-03-01 00:17:54 +08:00
parent 838a65bff8
commit 90866ee4e2
1 changed files with 1 additions and 2 deletions

View File

@ -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', /#\/$/)
})