From 0791026b53e012f32812c96d1899118714b73ed3 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 8 Aug 2022 08:08:51 +0200 Subject: [PATCH] cy: fix login command with flexible selector Signed-off-by: Max --- 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 7b65139a..e031eab6 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -33,7 +33,7 @@ Cypress.Commands.add('login', (user, password, route = '/apps/files') => { 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('form[name=login] [type=submit]').click() cy.url().should('include', route) })