cy: fix login submit selector for current server

Made the selector flexible enough to still work with the old.

Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Max
2022-08-07 08:12:13 +02:00
parent ef1800c50a
commit 5c95b5ac98

View File

@@ -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...