Skip to content

chore: [DHIS2-21633] Cypress tests for deactivate/reactivate tracked entity - #4607

Merged
henrikmv merged 15 commits into
masterfrom
hv/chore/DHIS2-21633_cypress-tests-deactivate-reactivate-te
Jul 1, 2026
Merged

chore: [DHIS2-21633] Cypress tests for deactivate/reactivate tracked entity#4607
henrikmv merged 15 commits into
masterfrom
hv/chore/DHIS2-21633_cypress-tests-deactivate-reactivate-te

Conversation

@henrikmv

@henrikmv henrikmv commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

DHIS2-21633

Adds end-to-end coverage for the deactivate/reactivate tracked entity feature.

Enrollment dashboard – profile widget

  • Cancelling the deactivate modal leaves the entity unchanged and editable
  • Deactivating sets the profile to read-only ("View profile" + "View only - You only have view access to this enrollment" badge)
  • Reactivating returns the profile to editable
  • Verifies the deactivate/activate modal copy and that the status mutation succeeds

Tracker working list

With one tracked entity deactivated:

  • its row is marked deactivated with a disabled selection checkbox
  • "select all" excludes the deactivated row
  • clicking the row itself does not select the deactivated row

Both flows restore the tracked entity to active via the API afterwards, so they don't leave shared demo data deactivated.

@henrikmv
henrikmv changed the base branch from master to hv/feat/DHIS2-20842_deactivate-reactivate-tracked-entity June 12, 2026 13:04
@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown

@henrikmv henrikmv added testing and removed testing labels Jun 16, 2026
henrikmv added 2 commits June 16, 2026 14:04
…eactivate-tracked-entity' into hv/chore/DHIS2-21633_cypress-tests-deactivate-reactivate-te
@henrikmv henrikmv added testing and removed testing labels Jun 16, 2026
@henrikmv
henrikmv marked this pull request as draft June 16, 2026 12:23
@henrikmv
henrikmv marked this pull request as ready for review June 16, 2026 12:23
Base automatically changed from hv/feat/DHIS2-20842_deactivate-reactivate-tracked-entity to master July 1, 2026 07:23
@henrikmv henrikmv removed the testing label Jul 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@henrikmv henrikmv changed the title test: [DHIS2-21633] Cypress tests for deactivate/reactivate tracked entity chore: [DHIS2-21633] Cypress tests for deactivate/reactivate tracked entity Jul 1, 2026
@henrikmv
henrikmv merged commit fa75678 into master Jul 1, 2026
48 checks passed
@henrikmv
henrikmv deleted the hv/chore/DHIS2-21633_cypress-tests-deactivate-reactivate-te branch July 1, 2026 09:00
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 106.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants