Skip to content

Add additional automated server-side rendering (SSR) tests for all Entity Types#4189

Merged
kshepherd merged 1 commit intoDSpace:mainfrom
tdonohue:more_automated_ssr_tests
Apr 15, 2025
Merged

Add additional automated server-side rendering (SSR) tests for all Entity Types#4189
kshepherd merged 1 commit intoDSpace:mainfrom
tdonohue:more_automated_ssr_tests

Conversation

@tdonohue
Copy link
Member

@tdonohue tdonohue commented Apr 14, 2025

References

Description

After #4145 was discovered by accident, I thought it'd be better to add more automated SSR testing to our GitHub CI process. This PR therefore adds an SSR validation test for Communities, Collections, Items/Publication, Person, Project, OrgUnit and all Journal entity types.

The new tests are based on the existing SSR test that we've had for the Homepage already.

I've verified these new tests would have caught the issue found in #4145 by doing the following:

The wget command fails (returns 1) if #4161 is reverted, but succeeds (returns 0) on main.

Instructions for Reviewers

  • Verify all new wget tests pass
  • Verify the code makes sense

…tion/Item, Person, OrgUnit and all Journal entities
@tdonohue tdonohue added 1 APPROVAL pull request only requires a single approval to merge testing framework Related specifically to Unit or Integration (e2e) Tests 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 Apr 14, 2025
@tdonohue tdonohue added this to the 9.0 milestone Apr 14, 2025
@tdonohue
Copy link
Member Author

@kshepherd : Would you be willing to give this a quick review? I've verified that this would have caught the issues in #4145 if we'd had this in place. So, now future PRs will be automatically verified to not break SSR on major pages.

@tdonohue tdonohue requested a review from kshepherd April 14, 2025 20:56
@tdonohue tdonohue moved this to 🙋 Needs Reviewers Assigned in DSpace 9.0 Release Apr 14, 2025
@kshepherd
Copy link
Member

@tdonohue will review this tomorrow with priority, thanks!

Copy link
Member

@kshepherd kshepherd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 great test additions, thanks @tdonohue

@github-project-automation github-project-automation bot moved this from 🙋 Needs Reviewers Assigned to 👍 Reviewer Approved in DSpace 9.0 Release Apr 15, 2025
@kshepherd kshepherd merged commit d3130bd into DSpace:main Apr 15, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from 👍 Reviewer Approved to ✅ Done in DSpace 9.0 Release Apr 15, 2025
@dspace-bot
Copy link
Contributor

Git push to origin failed for dspace-7_x with exitcode 1

@dspace-bot
Copy link
Contributor

Git push to origin failed for dspace-8_x with exitcode 1

@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 Apr 15, 2025
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 testing framework Related specifically to Unit or Integration (e2e) Tests

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants