Skip to content

mate-academy/qa_cypress_e2e_alerts

Repository files navigation

Cypress: Alerts

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. Resolve tasks in the cypress/e2e/alerts.cy.js.
  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

Basic level

Read the documentation about the Catalog of Events.

App for testing: DemoQA

Your task is to automate the next flow:

  1. Click on the first button:
    • assert the text inside the alert.
  2. Click on the second button:
    • assert the text inside the alert is shown in 5 secons.
  3. Click on the third button:
    • assert the text inside the allert;
    • assert You selected Ok is shown.
  4. Click on the third button and click on Cancel (read about the window:confirm event in the documentation):
    • assert the text inside the allert;
    • assert You selected Cancel is shown.

Advanced level

Read the documentation:

  1. Click on the fourth button and enter your name:
    • assert your name is shown on the page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published