diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 35b6987..6a09561 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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', /#\/$/) })