From 90866ee4e29fc60be8453a64be99b51e25e4a610 Mon Sep 17 00:00:00 2001 From: mutoe Date: Mon, 1 Mar 2021 00:17:54 +0800 Subject: [PATCH] test: fix login command issue --- cypress/support/commands.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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', /#\/$/) })