- Fork the repo.
- Clone your forked repository.
- Run the command
npm i
. - Create a new branch
git checkout -b testing
. - Solve the task.
- Check yourself before submitting the task with a Cypress checklist.
- Create a pull request.
- Do not forget to click on
Re-request review
if you submit the homework after previous review.
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):
- Visit the home page
- Click on the "Laptops"
- Click on "Sony vaio i7"
- Click on [Add to cart]
- assert message in the alert
- Click on "Cart"
- assert the product is in the cart
- Click on [Place order]
- Fill all fields
- Click on [Purchase]
- assert entered data is shown on modal
- Click on [Ok]