Skip to content

(test) O3-5000: Add unit tests to the translation builder #1153#1157

Open
ssebayigga-sharif wants to merge 1 commit intoopenmrs:mainfrom
ssebayigga-sharif:O3-5000-clean
Open

(test) O3-5000: Add unit tests to the translation builder #1153#1157
ssebayigga-sharif wants to merge 1 commit intoopenmrs:mainfrom
ssebayigga-sharif:O3-5000-clean

Conversation

@ssebayigga-sharif
Copy link
Copy Markdown

@ssebayigga-sharif ssebayigga-sharif commented Apr 8, 2026

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR adds unit tests to improve reliability and ensure correct behavior of the Translation Builder

Key Test Coverage:

Rendering: Verify Translation Builder UI renders with schema (tabs, dropdown, buttons, search).

Translations Display: Confirm fallback and overridden translations appear correctly.

Editing: Validate EditTranslationModal opens, updates schema on save, and cancels without changes.

Filtering & Search: Ensure tabs (All/Translated/Untranslated) and search filtering work.

Language Switching: Confirm translations update when switching languages, including backend merge.

Download: Test translation download, with error handling when no translations exist.

Upload: Mock upload flow with success and failure cases, showing proper snackbar messages

Screenshots

Screenshot (61)

Related Issue

https://openmrs.atlassian.net/browse/O3-5000

Other

@ssebayigga-sharif ssebayigga-sharif changed the title (test) O3-5000-clean: Added unit tests to the translation builder component (test)O3-5000-clean: Added unit tests to the translation builder component Apr 8, 2026
@ssebayigga-sharif ssebayigga-sharif changed the title (test)O3-5000-clean: Added unit tests to the translation builder component (test)O3-5000: Added unit tests to the translation builder component Apr 8, 2026
@ssebayigga-sharif ssebayigga-sharif changed the title (test)O3-5000: Added unit tests to the translation builder component (test) O3-5000: Add unit tests to the translation builder #1153 Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant