摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Many applications have features that can be used with slight variations. Instead of maintaining multiple tests with nearly identical code, we can take 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文