Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Cypress 13.15.0 #3315

Merged
merged 7 commits into from
Oct 9, 2024
Merged

Upgrade to Cypress 13.15.0 #3315

merged 7 commits into from
Oct 9, 2024

Conversation

tdonohue
Copy link
Member

@tdonohue tdonohue commented Sep 10, 2024

References

Description

Upgrades us to Cypress 13.15.0 which also resolves a security alert related to Cypress v12 (NOTE: This alert doesn't impact production as Cypress is only used to run e2e tests.)

In addition to the Cypress upgrade, the following minor changes were made to ensure better e2e test stability:

  • Updates to item-edit.cy.ts to check that the proper tab is active. This solves some random e2e failures which were occurring when an accessibility scan was triggered before the tabs were fully loaded on the page. This check forces Cypress to wait for the tabs to appear before proceeding.
  • Updates to login-modal.cy.ts to fix a minor bug & to simplify the CSS selectors.
  • Updates to command.ts to simplify CSS selectors. (The CSS selector cleanup here & above is just minor cleanup that can be done now that Header, navbar, and admin sidebar refactoring #2676 is merged, because we no longer have duplicate elements in the DOM)

Instructions for Reviewers

  • Verify code changes look reasonable
  • Verify all e2e tests pass (as Cypress is just used to run e2e tests)

@tdonohue tdonohue added dependencies Pull requests that update a dependency file 1 APPROVAL pull request only requires a single approval to merge port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release labels Sep 10, 2024
@tdonohue tdonohue added this to the 9.0 milestone Sep 10, 2024
package.json Outdated Show resolved Hide resolved
@tdonohue tdonohue changed the title Upgrade to Cypress 13.14.2 Upgrade to Cypress 13.15.0 Oct 9, 2024
@tdonohue
Copy link
Member Author

tdonohue commented Oct 9, 2024

Merging this immediately as it solves a security vulnerability in the development environment, and this only touches e2e tests.

@tdonohue tdonohue merged commit d7ff9c3 into DSpace:main Oct 9, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Backport failed for dspace-7_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-7_x
git worktree add -d .worktree/backport-3315-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3315-to-dspace-7_x
git switch --create backport-3315-to-dspace-7_x
git cherry-pick -x 59ba031b1f733aa43576a042ad639f5ded6f7ca3 f9911ce5ba125e28e81cb5338dd887f6d892fe91 7aba69edd6c345ad48045748940390eb964a8961 968c5bda7158e874bb248361e39d39f732996f7d a012e4cea25423fed9bce67aafaa4e7432c58b41 b543b32a373dcae05bfe529f6f8353b627aed15b b4d932a91b07a781510d4cfa54aad30dfe218c5c

@dspace-bot
Copy link
Contributor

Backport failed for dspace-8_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-8_x
git worktree add -d .worktree/backport-3315-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-3315-to-dspace-8_x
git switch --create backport-3315-to-dspace-8_x
git cherry-pick -x 59ba031b1f733aa43576a042ad639f5ded6f7ca3 f9911ce5ba125e28e81cb5338dd887f6d892fe91 7aba69edd6c345ad48045748940390eb964a8961 968c5bda7158e874bb248361e39d39f732996f7d a012e4cea25423fed9bce67aafaa4e7432c58b41 b543b32a373dcae05bfe529f6f8353b627aed15b b4d932a91b07a781510d4cfa54aad30dfe218c5c

@tdonohue tdonohue deleted the upgrade_cypress branch October 9, 2024 16:21
@tdonohue tdonohue added the testing framework Related specifically to Unit or Integration (e2e) Tests label Oct 9, 2024
@tdonohue tdonohue removed port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release labels Oct 9, 2024
@tdonohue
Copy link
Member Author

tdonohue commented Oct 9, 2024

Ported to 7.x in #3398 and 8.x in #3397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge dependencies Pull requests that update a dependency file testing framework Related specifically to Unit or Integration (e2e) Tests
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants