Description
In this course, you will :
- Learn how to use Cypress.io to set up quick, easy, and automatic JavaScript testing. Cypress is a cutting-edge testing framework that makes it easier to test JavaScript applications.
- This training course provides a quick introduction to Cypress.io, covering fundamental and advanced techniques for writing end-to-end test cases.
- Learn how to write a simple test and then use aliases and beforeEach hooks to reduce repetitive code.
- demonstrates how to trigger other actions within tests, set up automatic retries, and troubleshoot any errors
- The course concludes with an examination of other useful Cypress commands and features, such as intelligent code completion.
Syllabus :
1. Introduction to Cypress.io
- What is Cypress.io
- Advantages of Cypress.io
- Limitations of Cypress.io
2. The Basics
- Installing and opening Cypress
- Writing your first Cypress test
- Testing text input
- Selecting elements
- Aliasing elements
- Working with command results
- The "beforeEach" hook
- Setting a base URL
3. Intermediate Concepts
- Interacting with elements
- Triggering other actions
- Common assertions
- Automatic retrying
- Debugging in Cypress
- Environment variables
- Test doubles
4. Other Useful Commands
- The "wrap" command
- The "and" command
- The "filter" and "not" commands
- Typing special characters
- Activating code completion