课程: End-to-End JavaScript Testing with Cypress.io
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge 3: Writing your own tests
课程: End-to-End JavaScript Testing with Cypress.io
Challenge 3: Writing your own tests
(upbeat music) - [Instructor] All right, so now that we've learned a little bit more about some Cypress commands, it's time for you to do another challenge. And in this challenge, your job is going to be to use either the "filter" or "not" command, whichever one you decide is appropriate, in order to select something. So your challenge here is going to be to go into the example-2 page, and you can use the selecting.cy.js file to do this challenge if you want. And your job is going to be to select all of the inputs on the page, and then again, using either "filter" or "not", get only the second input once you've done that selection. So that is going to be your task. Again, select all of the inputs, and then use "filter" or "not" to narrow it down to only the second input. So that's your challenge. This challenge should take you no more than five minutes to complete. And once you've given it a try, feel free to move on to the next video where I'll show you the solution.