From the course: End-to-End JavaScript Testing with Cypress.io
Unlock this course with a free trial
Join today to access over 24,100 courses taught by industry experts.
Interacting with elements
From the course: End-to-End JavaScript Testing with Cypress.io
Interacting with elements
- [Instructor] All right, so now that we've seen a lot of the basics of writing end-to-end tests with Cypress, over the next few videos we're going to take a more in-depth look at how to do a few different things, such as interacting with elements, making different assertions, debugging our Cypress tests, and so on. So in this video we're going to focus on several different ways that you can interact with elements in Cypress, and to start off with, so far the only real interaction that we've used in our tests, in other words the only real change that we've made to the interface as we've had Cypress interact with it on our behalf, is we've used this type command to change the value in a text input, but in reality there are many other commands that Cypress provides us with for testing applications. These commands are all pretty straightforward, so I'm not really going to spend too much time on any one of them, but feel free to play around with them until they become more familiar. So…
Contents
-
-
-
-
-
(Locked)
Interacting with elements6m 6s
-
(Locked)
Triggering other actions8m 46s
-
(Locked)
Common assertions8m 46s
-
(Locked)
Automatic retries3m 21s
-
(Locked)
Debugging Cypress tests5m 41s
-
(Locked)
Setting environment variables6m 10s
-
(Locked)
Working with test doubles4m 34s
-
(Locked)
Challenge 2: Writing your own tests1m 20s
-
(Locked)
Solution 2: Writing your own tests3m 29s
-
(Locked)
-
-