Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1220

Fix creating test visit in UI tests

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Approved
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined
    • Sprint:
      QA 2

      Description

      Currently UI tests fail due to RA-1217 i.e. login location must match visit location to be displayed on the active visits page.

      We need to create a visit for a location selected during login in for example TestData.TestVisit(patient.uuid, VISIT_TYPE_UUID, LOCATION_UUID).create(); in XSSOnPhoneNumberFieldTest

      Change it to TestData.TestVisit(patient.uuid, VISIT_TYPE_UUID).create();
      Override create method in uitestframework to first get the login location uuid using REST endpoint: /ws/rest/v1/appui/session

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                raff Rafal Korytkowski
                Reporter:
                raff Rafal Korytkowski
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 1 hour, 30 minutes
                    1d 1h 30m