illustration for Test Network Edge Cases with cy.intercept() Command in Cypress
pro

Test Network Edge Cases with cy.intercept() Command in Cypress

Instructor

Filip Hric

14m closed-captioning
·
10 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
97
people completed
Published 4 years ago
|
Updated 3 years ago
Pro membership required
Upgrade now

Your app can react in various way on different network conditions. Cypress has a great toolset for setting up those conditions, which enable you to test your app thoroughly. That way you can ship your app with confidence.

Cypress’ .intercept() command is one of the most fun command to use. And it’s also one of the most useful.

Especially when you are done with all your happy paths and want to increase your test coverage with some edge cases.

These edge cases can mean different data, headers or server behavior. You can modify all of these, dynamically or with a static fixture prepared beforehand