diff --git a/cypress/e2e/persistent-identifiers.cy.js b/cypress/e2e/persistent-identifiers.cy.js --- a/cypress/e2e/persistent-identifiers.cy.js +++ b/cypress/e2e/persistent-identifiers.cy.js @@ -29,6 +29,9 @@ if (win.location.port) { urlPrefix += `:${win.location.port}`; } + // for some reasons, cypress hangs when visiting that URL in beforeEach callback + // due to HTTP redirection, so get the redirected URL here to workaround that issue. + url = win.location.href; const swhids = win.swh.webapp.getSwhIdsContext(); cntSWHID = swhids.content.swhid; cntSWHIDWithContext = swhids.content.swhid_with_context;