课程: End-to-End JavaScript Testing with Cypress.io
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Debugging Cypress tests
- [Instructor] Now, it's a very common thing when we're writing or running Cypress tests that our application doesn't quite behave as we expected and we're not really sure why. Now in these situations, it's really helpful to be able to pause our application at a specific point and debug it like we normally would. And this is something that even Cypress' snapshots here don't really do since they really only show you what the visible part of the app looked like at the point when the snapshot was taken. In other words, if something went wrong in our application, if there was some kind of problem with the application state, many times we need to actually look at that internal state to figure out what the root cause was of that problem. Now Cypress provides several nice tools for us. The first tool is simply called debugger, and this allows us to pause the execution of our tests at a specific point in our code, not just at specific assertions or actions that we make. Now, what debugger…
内容
-
-
-
-
-
(已锁定)
Interacting with elements6 分钟 6 秒
-
(已锁定)
Triggering other actions8 分钟 46 秒
-
(已锁定)
Common assertions8 分钟 46 秒
-
(已锁定)
Automatic retries3 分钟 21 秒
-
(已锁定)
Debugging Cypress tests5 分钟 41 秒
-
(已锁定)
Setting environment variables6 分钟 10 秒
-
(已锁定)
Working with test doubles4 分钟 34 秒
-
(已锁定)
Challenge 2: Writing your own tests1 分钟 20 秒
-
(已锁定)
Solution 2: Writing your own tests3 分钟 29 秒
-
(已锁定)
-
-