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

E2E github action's `testOnPush` job is failing

    XMLWordPrintable

Details

    • Task
    • Status: Done
    • Must
    • Resolution: Fixed
    • None
    • None
    • Quality Assurance (QA)
    • None

    Description

      The test on Push Job is failing because of the following reasons:
      1. The dev server is running on the attached mode
      2. Playwright is configured to spin a dev server on CI 

      Workflow file: 
      https://github.com/openmrs/openmrs-esm-patient-management/blob/main/.github/workflows/e2e.yml

      Failing run: 
      https://github.com/openmrs/openmrs-esm-patient-management/actions/runs/3995764975/jobs/6855012120

      Steps to resolve:
      1. Remove the WebServer config from the playwright config file
      2. Update the `testOnPush` job to run the dev server in detached mode (add '&' symbol to the command)

      `run: yarn start --backend "http://localhost:9000" &`
      

      3. Update the `testOnPR` job to run the dev server. (refer to this file. Add the step after the browser installation. Start the dev server using `yarn start`)

      - name: Run dev server
       run: yarn start &
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                piumal1999 Piumal Rathnayake
                jayasanka Jayasanka Weerasinghe
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: