Loading
Current section: Debugging 4 exercises
lesson

Debugging Introduction

Loading lesson

Transcript

00:00 Because there are so many moving pieces involved in an end to end test, it is absolutely crucial that you feel comfortable debugging them when something goes wrong. And I'm not talking about just debugging your app, but also figuring out what makes the test fail. Because it all starts from there. You need to understand the reason for that failure. Does it indicate an actual issue in your app?

00:19 Perhaps it's an incorrectly written test, maybe flakiness, or maybe something else entirely. And no matter what it is, you have to know what to do. You have to be comfortable approaching that failure. It doesn't help that end to end tests are some of the trickiest ones to debug. Not only because they involve the majority of your app, but also because they run-in this automated browser environment, this whole universe where a lot of things can happen in between.

00:42 But they also give you one distinct advantage you're able to see what's happening with your app as the test interacts with it. And that visual feedback can be a decisive factor in trying to figure out failed tests. So in this exercise block, you can explore some of the options Playwright gives you for debugging and how to use them efficiently.