Handle Page Requests in Tests with Puppeteer

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
~ 6 years ago

Cool.