Challenge: e2e Tests
Discover how to build robust end-to-end tests for Vue applications using Cypress and its testing library. This lesson guides you through testing navigation, form submissions, and content verification across multiple pages without relying solely on direct visits. Gain practical skills in writing cohesive tests that emulate real user interactions and maintain application integrity.
We'll cover the following...
Problem statement
End-to-end tests are a great way to test if core user journeys on a website work in a cohesive and coherent manner. Your task is to write e2e tests using Cypress and the Cypress testing library to ensure that the website displays the correct information.
Challenge
Your project contains “Home,” “About,” and “Contact” pages. Your task is to write tests using Cypress and the Cypress testing library that will do the following:
Home
- Visit the homepage.
- Check that the homepage contains the