[arvados] updated: 2.7.0-5831-g36abfcec5b

git repository hosting git at public.arvados.org
Mon Jan 15 20:28:38 UTC 2024


Summary of changes:
 services/workbench2/cypress/support/commands.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  36abfcec5beb003e9cef9bf46fb93c0ed8ebf0a7 (commit)
      from  34d002d5ea01e2d22b897bffdb6c1cbe6ef2ec72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 36abfcec5beb003e9cef9bf46fb93c0ed8ebf0a7
Author: Stephen Smith <stephen at curii.com>
Date:   Mon Jan 15 15:28:20 2024 -0500

    21353: Add guard against undefined location
    
    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 538053a6c5..6c6913c58b 100644
--- a/services/workbench2/cypress/support/commands.js
+++ b/services/workbench2/cypress/support/commands.js
@@ -352,8 +352,9 @@ Cypress.Commands.add("loginAs", user => {
     cy.clearCookies();
     cy.clearLocalStorage();
     cy.visit(`/token/?api_token=${user.token}`);
+    // location can be undefined so ensure retryability with should
     cy.location({ timeout: 15000 }).should((loc) => {
-        expect(loc.href).to.include("/projects/");
+        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