Handle Page Requests in Tests with Puppeteer

Tyler Clark
InstructorTyler Clark

Share this video with your friends

Send Tweet

In this lesson, we are going to fetch the Star Wars api from a React lifecycle method. Then inside of our tests we will intercept the request and abort it. Finally we'll test that our error message works as intended.

Viktor Soroka
Viktor Soroka
~ 7 years ago

Cool.