Repository navigation
[Port dspace-10_x] Upgrade Cypress to 15.21.2 to fix e2e tests on Chrome 158 - #6553
Merged
alanorth merged 1 commit intoNov 24, 2026
Merged
Conversation
GitHub's ubuntu-latest runner now provides Chrome for Testing 158.
Cypress 15.21.1 resets the browser between specs with
Storage.clearDataForOrigin using origin "*", which Chrome 158 rejects
("* is not a valid URL"), so "cypress run" aborts at the second spec.
Cypress 15.21.2 clears storage per origin instead
(cypress-io/cypress#35195, fixed by cypress-io/cypress#35198).
Assisted-by: Claude Code [claude-opus-5-5]
(cherry picked from commit 36e64cd)
alanorth
approved these changes
Nov 24, 2026
Contributor
|
Thank you, @bram-atmire. I see this has been fixed on |
Merged
6 of 15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual backport of #6550 to
dspace-10_xReferences
Description
Since 2026-11-19 the e2e tests fail in every PR, because Cypress aborts at the start of the second spec with
Error: * is not a valid URL. This PR upgrades Cypress from 15.21.1 to 15.21.2, which contains the upstream fix for Chrome 158.Instructions for Reviewers
What changed in CI
The e2e job runs with
browser: chrome-for-testing, which uses the Chrome that comes with the GitHub runner image. Around 2026-11-18, GitHub movedubuntu-latestfrom ubuntu-24.04 to ubuntu-26.04, which upgraded Chrome for Testing from 157 to 158. Cypress, the Cypress GitHub action and our code did not change.Root cause
Between specs, Cypress 15.21.1 resets the browser state with the Chrome DevTools command
Storage.clearDataForOriginandorigin: '*'. Chrome 158 no longer accepts*as an origin and returns* is not a valid URL, and Cypress then aborts the whole run. That is why the first spec passes and the run stops at the start of the second one (admin-curation-tasks.cy.ts). Other Chrome-based test tools hit the same Chrome change (for example teamcapybara/capybara#2865).Cypress fixed this in 15.21.2 by clearing storage per origin instead of using
*(cypress-io/cypress#35198, "support Chrome 158 (per-origin browser reset, keep unload events)").This is a real fix, not a workaround: we keep testing against the current Chrome and runner image instead of pinning an older Chrome or
ubuntu-24.04.List of changes in this PR:
package.jsonandpackage-lock.json:cypressfrom^15.21.1to^15.21.2. No other packages change in the lockfile.How to test
tests (20.x)andtests (22.x)) of this PR should run all 60 specs again instead of stopping at the second one.npm ciandnpx cypress verify, thennpm run e2eagainst a backend with the e2e test data.AI Disclosure (REQUIRED)
Were AI tools used in the creation of this PR?
Claude Code (claude-opus-5-5) compared the green and failing CI runs, traced the error to the
Storage.clearDataForOrigincall in the Cypress source of 15.21.1 and to the upstream Cypress issue and fix, and made the version change. It rannpm ciandnpx cypress verifylocally. It did not run the e2e tests locally (they need the CI backend with test data and Chrome 158); this PR's CI run is the verification. Cypress 15.21.2 was published on 2026-11-13. Its install script is unchanged from 15.21.1, and neither version has npm provenance.My human verification didn't find any issues.
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.