From 5c95b5ac98e945bd12ad72d9385ecbf8bc244fb1 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 7 Aug 2022 08:12:13 +0200 Subject: [PATCH] cy: fix login submit selector for current server Made the selector flexible enough to still work with the old. 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 b74d726b5..19815e16f 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -29,7 +29,7 @@ Cypress.Commands.add("login", (user, password, route = "/apps/deck/") => { 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); }); // in case the session already existed but we are on a different route...