上一页 1 ··· 283 284 285 286 287 288 289 290 291 ··· 498 下一页
摘要: In this lesson, you will learn how to create a queue in JavaScript. A queue is a first-in, first-out data structure (FIFO). We can only remove items f 阅读全文
posted @ 2018-12-12 06:21 Zhentiw 阅读(211) 评论(0) 推荐(0)
摘要: 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 阅读(135) 评论(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 阅读(342) 评论(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 阅读(184) 评论(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 阅读(150) 评论(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 阅读(444) 评论(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 阅读(366) 评论(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 阅读(590) 评论(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 阅读(185) 评论(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 阅读(133) 评论(0) 推荐(0)
上一页 1 ··· 283 284 285 286 287 288 289 290 291 ··· 498 下一页