Skip to content

chore: cypress update [DHIS2-21978] - #2281

Merged
tomzemp merged 17 commits into
masterfrom
DHIS2-21978/cypress-update
Sep 3, 2026
Merged

tomzemp merged 17 commits into
masterfrom
DHIS2-21978/cypress-update

Conversation

@tomzemp

@tomzemp tomzemp commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

For https://dhis2.atlassian.net/browse/DHIS2-21978

  • Updates cypress to version 13 + updated some related dependencies (this necessitated a bunch of syntax changes). Note that I've kept the dependencies at certain lower versions that are working because some of our platform workflows are running with node v20 and newer packages are not compatible with v20 of node (we should update this in the workflows, but they're common workflows and also used by extensibility team)
  • uses enableNetworkShim (previously fixtures were not being captured)
  • does a clean up of tests (some of the tests were not correctly asserting things they should have been asserting), some tests were out of date, some tests needed modifications given to changes in the app
  • adds e2e workflow back to the CI

This is all done with many rounds of AI (if that is not obvious from the AI comments throughout 😄), but I have read through all the tests to verify appropriateness (and prompted for some changes) + debugged.

(Note, to run cypress tests locally, you need a cypress.env.json file which is not uploaded to repo by default, mine looks like:

{
    "dhis2_base_url": "http://localhost:9090",
    "dhis2_username": "admin",
    "dhis2_password": "district",
    "dhis2BaseUrl": "http://localhost:9090",
    "dhis2Username": "admin",
    "dhis2Password": "district"
}

(snake case logic would be sufficient as well because there is some logic for converting, but I've just added both)

@tomzemp tomzemp changed the title Dhis2 21978/cypress update chore: cypress update [DHIS2-21978] Aug 26, 2026
@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-2281--dhis2-import-export.netlify.app

@dhis2-bot
dhis2-bot temporarily deployed to netlify August 26, 2026 12:47 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 26, 2026 13:14 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 26, 2026 13:17 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 26, 2026 14:17 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 26, 2026 14:29 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 27, 2026 13:33 Inactive
@tomzemp
tomzemp marked this pull request as ready for review August 27, 2026 15:12
@tomzemp
tomzemp requested a review from a team August 28, 2026 07:18

@Sharmyn28 Sharmyn28 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Tom! 😄

@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
2 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
2.0% Duplication on New Code

See analysis details on SonarQube Cloud

@dhis2-bot
dhis2-bot temporarily deployed to netlify September 3, 2026 13:59 Inactive
@tomzemp
tomzemp merged commit c64cd7e into master Sep 3, 2026
10 checks passed
@tomzemp
tomzemp deleted the DHIS2-21978/cypress-update branch September 3, 2026 14:22
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 101.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was previously deployed

1 inactive deployment
netlify — 779a4fca Deployed Sep 3, 2026 by dhis2-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants