Uploaded image for project: 'Microfrontends'
  1. Microfrontends
  2. MF-532

Login Test (Simple example)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Quality Assurance (QA)
    • Labels:
      None

      Description

      Steps in this test:

      1. At https://openmrs-spa.org/openmrs/spa
      2. Enter Username "admin"
      3. Click "Continue"
      4. Enter Password "Admin123"
      5. Click "Log in"
      6. Click "Unknown Location"
      7. Click "Confirm"
      8. Result: should arrive at https://openmrs-spa.org/openmrs/spa/home

       

      Guidance

      To complete this task, you will need to do the following within {LINK TO REPO - USE EXISTING QA FRAMEWORK REPO?}: 

      1. Create Feature File in the correct location here (this will contain the Gherkin steps you write next): LINK TO REPO -qaframework/tree/master/src/test/resources/features 
        1. Write Steps in Gherkin ++ and add these to the Feature File (Guidance here: https://cucumber.io/docs/gherkin/reference/) (steps in the feature file should be in the Gherkin BDD language, using "Given" "When") (Example 1) (Example 2)
      2. Automate these Steps with Cypress
        1. Create Cypress Skeleton (EXISTING DOCUMENTATION) & add this to the repo
        2. Add Cucumber-Cypress pre-processor, and pass a setting to it that defines where you have the automation tests (e.g. Example )
          1. Define where you're writing the Automation steps (e.g. Example])
        3. Define the place where the feature file sits (e.g. Example )

      Other Helpful Links 

      1. Tips: https://css-tricks.com/using-cypress-to-write-tests-for-a-react-application/ 
      2. Sample commit using Cypress + Cucumber: https://github.com/openmrs/openmrs-ocl-client/pull/595/files 
      3. General demo of using Cypress (without using the Cucumber Framework): https://iu.mediaspace.kaltura.com/media/t/1_mnruasd8?st=665

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              joachimjunior Joachim Ukaegbu
              Reporter:
              grace Grace Potma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: