上一页 1 ··· 297 298 299 300 301 302 303 304 305 ··· 494 下一页
摘要: With the right process in place, snapshot tests can be a great way to detect unintended changes in any part of your application that can be serialized 阅读全文
posted @ 2018-07-06 17:14 Zhentiw 阅读(177) 评论(0) 推荐(0)
摘要: Integration tests let us keep our tests fast and reliable. They also allow us to test scenarios that are hard to recreate in a full end-to-end setup. 阅读全文
posted @ 2018-07-05 22:53 Zhentiw 阅读(313) 评论(0) 推荐(0)
摘要: Inside one file, you can freely mark the number 1-9: And jump to Number of bookmark: It helps to generate type safe interface based the json file you 阅读全文
posted @ 2018-07-05 19:45 Zhentiw 阅读(321) 评论(0) 推荐(0)
摘要: So each phone's width is 750rpx. And according to the device ratio (width:height), we can calucalate the height in rpx. For example iPhone 5: 320px x 阅读全文
posted @ 2018-07-04 18:33 Zhentiw 阅读(358) 评论(0) 推荐(0)
摘要: Many applications have features that can be used with slight variations. Instead of maintaining multiple tests with nearly identical code, we can take 阅读全文
posted @ 2018-07-04 18:19 Zhentiw 阅读(433) 评论(0) 推荐(0)
摘要: We’ll often need to access the same DOM elements multiple times in one test. Your first instinct might be to use cy.getand assign the result to a vari 阅读全文
posted @ 2018-07-04 18:15 Zhentiw 阅读(340) 评论(0) 推荐(0)
摘要: We often only show UI elements as a result of some user interaction. Cypress detects visibility and by default won’t allow your test to interact with 阅读全文
posted @ 2018-07-04 18:12 Zhentiw 阅读(1001) 评论(0) 推荐(0)
摘要: By default, browsers load the assets in a render-blocking way. Modern browsers introduced prefetch and preload which let us specify the priority for a 阅读全文
posted @ 2018-07-02 21:18 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: By default, vue-router doesn’t lazy load the routes unless you tell it to do it. Lazy loading of the non-critical routes is one of the points of the P 阅读全文
posted @ 2018-07-02 21:01 Zhentiw 阅读(179) 评论(0) 推荐(0)
摘要: Even if you have your application fully cached, you couldn’t perform any external request without internet connection. That’s why in order to build an 阅读全文
posted @ 2018-07-02 20:54 Zhentiw 阅读(147) 评论(0) 推荐(0)
上一页 1 ··· 297 298 299 300 301 302 303 304 305 ··· 494 下一页