Skip to content

mate-academy/qa_cypress_e2e_demoblaze_page_object

Repository files navigation

Cypress: Demoblaze (POM basics)

Workflow

  1. Fork the repo.
  2. Clone your forked repository.
  3. Run the command npm i.
  4. Create a new branch git checkout -b testing.
  5. Solve the task.
  6. Check yourself before submitting the task with a Cypress checklist.
  7. Create a pull request.
  8. Do not forget to click on Re-request review if you submit the homework after previous review.

Task

App for testing: Demoblaze

  • Resolve task solution in the cypress/e2e/checkout.cy.js file.

Your task is to automate the next flow using POM (you have an example in contactForm.cy.js and more info in the theory to the topic):

  1. Visit the home page
  2. Click on the "Laptops"
  3. Click on "Sony vaio i7"
  4. Click on [Add to cart]
    • assert message in the alert
  5. Click on "Cart"
    • assert the product is in the cart
  6. Click on [Place order]
  7. Fill all fields
  8. Click on [Purchase]
    • assert entered data is shown on modal
  9. Click on [Ok]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published