Recall & Review
beginner
What is Component Testing in Cypress?
Component Testing checks individual parts of the app, like a single button or form, to make sure they work right alone.
Click to reveal answer
beginner
What does End-to-End (E2E) Testing verify?
E2E Testing checks the whole app from start to finish, like a user clicking through pages to complete a task.
Click to reveal answer
intermediate
Why use Component Testing instead of E2E Testing?
Component Testing is faster and finds bugs in small parts early, while E2E tests are slower but check full user flows.
Click to reveal answer
intermediate
Give an example of a test best suited for E2E Testing.
Testing if a user can log in, add items to a cart, and complete checkout is best for E2E Testing.
Click to reveal answer
advanced
How do Component Testing and E2E Testing complement each other?
Component Testing ensures parts work well alone; E2E Testing ensures all parts work together for real user tasks.
Click to reveal answer
Which testing type focuses on individual UI parts in Cypress?
✗ Incorrect
Component Testing targets individual parts like buttons or forms.
What does E2E Testing simulate?
✗ Incorrect
E2E Testing simulates real user actions across the whole app.
Which is a benefit of Component Testing over E2E Testing?
✗ Incorrect
Component tests run faster because they test small parts only.
Which test would check if a login button changes color on hover?
✗ Incorrect
Component Testing checks UI details like button behavior.
Why run both Component and E2E tests?
✗ Incorrect
Both test types together ensure quality at part and whole app levels.
Explain the main differences between Component Testing and E2E Testing in Cypress.
Think about testing small parts vs. the whole app.
You got /4 concepts.
Describe when you would choose Component Testing over E2E Testing and why.
Consider speed and scope of tests.
You got /4 concepts.