上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 477 下一页
摘要: The idea is wrap a object with all its function methods and add some additional handling into a new object. For example, we have a object 'fireEvent': 阅读全文
posted @ 2018-12-11 03:29 Zhentiw 阅读(144) 评论(0) 推荐(0)
摘要: It is hard to explain css selector specificty, to easy way to understand it is by playing around with it. To remember some rules can be helpful: inlin 阅读全文
posted @ 2018-12-11 01:54 Zhentiw 阅读(360) 评论(0) 推荐(0)
摘要: Sometimes, you might want to convert a JavaScript function that accepts a callback to one that returns a Promiseobject. This lesson shows how to manua 阅读全文
posted @ 2018-12-07 19:16 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: For a file which contians lots of lines of code, we can use 'comments region' to collapse the code. 阅读全文
posted @ 2018-12-07 17:53 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要: Use custom Cypress command for reusable assertions We’re duplicating quite a few commands between the registration and login of our user for assertion 阅读全文
posted @ 2018-12-06 21:13 Zhentiw 阅读(453) 评论(0) 推荐(0)
摘要: Use Cypress to test user registration Let’s write a test to fill out our registration form. Because we’ll be running this against a live backend, we n 阅读全文
posted @ 2018-12-05 15:54 Zhentiw 阅读(385) 评论(0) 推荐(0)
摘要: Despite the fact that Cypress is an application that runs natively on your machine, you can install it and add it as a dependency just like all other 阅读全文
posted @ 2018-12-05 02:38 Zhentiw 阅读(602) 评论(0) 推荐(0)
摘要: Pseudo elements allow us to target elements that are not explicitly set in the DOM. Using ::before ::after we can actually create and manipulate eleme 阅读全文
posted @ 2018-12-04 23:10 Zhentiw 阅读(204) 评论(0) 推荐(0)
摘要: Using just semantic CSS Pseudo-Classes you can help define important states for form elements that ensure the user provides the correct data without f 阅读全文
posted @ 2018-12-04 22:59 Zhentiw 阅读(154) 评论(0) 推荐(0)
摘要: The interactive pseudo-classes for links (and buttons) allow us to make sure the user knows what elements on the page are interactive and that they ca 阅读全文
posted @ 2018-12-04 22:53 Zhentiw 阅读(156) 评论(0) 推荐(0)
上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 477 下一页