Skip to content

Conversation

@Bharath-K-Shetty
Copy link
Contributor

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

Related Issue

Other

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