[arvados] created: 2.7.0-5830-g34d002d5ea
git repository hosting
git at public.arvados.org
Mon Jan 15 19:53:48 UTC 2024
at 34d002d5ea01e2d22b897bffdb6c1cbe6ef2ec72 (commit)
commit 34d002d5ea01e2d22b897bffdb6c1cbe6ef2ec72
Author: Stephen Smith <stephen at curii.com>
Date: Mon Jan 15 14:52:25 2024 -0500
21353: Change loginAs to use cy.location to guard against undefined href race
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/services/workbench2/cypress/support/commands.js b/services/workbench2/cypress/support/commands.js
index 135f9cfd6d..538053a6c5 100644
--- a/services/workbench2/cypress/support/commands.js
+++ b/services/workbench2/cypress/support/commands.js
@@ -352,7 +352,9 @@ Cypress.Commands.add("loginAs", user => {
cy.clearCookies();
cy.clearLocalStorage();
cy.visit(`/token/?api_token=${user.token}`);
- cy.url({ timeout: 15000 }).should("contain", "/projects/");
+ cy.location({ timeout: 15000 }).should((loc) => {
+ expect(loc.href).to.include("/projects/");
+ });
cy.get("div#root").should("contain", "Arvados Workbench (zzzzz)");
cy.get("div#root").should("not.contain", "Your account is inactive");
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list