课程: End-to-End JavaScript Testing with Cypress.io
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge 1: Writing your own tests
课程: End-to-End JavaScript Testing with Cypress.io
Challenge 1: Writing your own tests
(upbeat music) - [Instructor] All right. So now that we've learned all about the basics of writing Simple Cypress tests and visiting different pages and running tests on those pages, it's time for you to do a challenge. Now, for this challenge, what I've done is I've actually created an extra page, which you can find by going to localhost:5173/challenge1. You do need the starting state of the exercise files for this video in order to find that. And basically, here's how this page is supposed to work. It just contains a simple text input inside it that you're supposed to put your name into, and once you've entered anything, even one character, it will display, underneath this, "Hello," with the name that you've typed into the text input as a value. So your goal here, and the challenge that I'm going to give to you is to simply write tests that will check that this works. So really the only two things that you're going to need to check is you're going to need to make sure that that…
内容
-
-
-
-
Installing and running Cypress2 分钟 14 秒
-
Writing and running Cypress tests8 分钟
-
(已锁定)
Testing text inputs7 分钟 53 秒
-
(已锁定)
Selecting elements8 分钟 20 秒
-
(已锁定)
Element aliasing6 分钟 39 秒
-
(已锁定)
Working with command results5 分钟 43 秒
-
(已锁定)
Using beforeEach4 分钟 57 秒
-
(已锁定)
Setting a base URL3 分钟 29 秒
-
(已锁定)
Challenge 1: Writing your own tests1 分钟 46 秒
-
(已锁定)
Solution 1: Writing your own tests6 分钟 38 秒
-
-
-
-