Uploaded image for project: 'OpenMRS 3.x Frontend'
  1. OpenMRS 3.x Frontend
  2. O3-334

Replace fireEvent() by userEvent() in Tests

    XMLWordPrintable

Details

    • Task
    • Status: Cancelled
    • Could
    • Resolution: Won't Do
    • None
    • None
    • Registration
    • None
    • Low
    • Micro Frontends Sprint 5, Micro Frontends Sprint 6, Micro Frontends Sprint 7, Micro Frontends Sprint 8, Micro Frontends Sprint 9, Micro Frontends Sprint 10

    Description

      To increase the readability of our component tests, we should replace fireEvent to userEvent, which is part of the React Testing Library and is much more readable and intuitive to use.

      User Event Docs.

      This change was already done in src/patient-registration/patient-registration.test.tsx

      Gliffy Diagrams

        Attachments

          Activity

            People

              cliff Cliff Nji Fonkwe
              sduslu Svenja Uslu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: