From ad9cea4db7d3682d1bd5041abf81bea792ccb7e9 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 25 Apr 2022 13:29:29 +0200 Subject: [PATCH] adapt cypress login command to small change in 25 Signed-off-by: Julien Veyssier --- cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index ec09259bd..fe559b04c 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -33,7 +33,7 @@ Cypress.Commands.add('login', (user, password, { route, onBeforeLoad } = {}) => cy.visit(route) cy.get('input[name=user]').type(user) cy.get('input[name=password]').type(password) - cy.get('#submit-wrapper input[type=submit]').click() + cy.get('.submit-wrapper input[type=submit]').click() cy.url().should('include', route) }) // in case the session already existed but we are on a different route...