随笔分类 -  E2E

摘要: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 阅读(300) 评论(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 阅读(426) 评论(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 阅读(331) 评论(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 阅读(993) 评论(0) 推荐(0) 编辑
摘要:Testing your application’s behavior when an XHR call results in an error can be difficult. The use of stubs for XHR calls makes it easy for us to setu 阅读全文
posted @ 2018-05-26 22:45 Zhentiw 阅读(316) 评论(0) 推荐(0) 编辑
摘要:In this lesson well stub a POST request and use Cypress commands to fill in and submit a form. We’ll wait for the submission to resolve and then asser 阅读全文
posted @ 2018-05-26 22:33 Zhentiw 阅读(485) 评论(0) 推荐(0) 编辑
摘要:Cypress provides a straightforward API that allows you to define custom commands. In this lesson, we’ll take a series of Cypress commands and wrap the 阅读全文
posted @ 2018-05-25 21:29 Zhentiw 阅读(456) 评论(0) 推荐(0) 编辑
摘要:When testing interactions that require asynchronous calls, we’ll need to wait on responses to make sure we’re asserting about the application state at 阅读全文
posted @ 2018-05-25 21:19 Zhentiw 阅读(434) 评论(0) 推荐(0) 编辑
摘要:When creating integration tests with Cypress, we’ll often want to stub network requests that respond with large datasets. All of this mock data can le 阅读全文
posted @ 2018-05-25 21:13 Zhentiw 阅读(473) 评论(0) 推荐(0) 编辑
摘要:To keep our tests fast and easily repeatable, it makes sense to create many integration tests and fewer full end-to-end tests. In this lesson, we’ll s 阅读全文
posted @ 2018-05-25 20:59 Zhentiw 阅读(205) 评论(0) 推荐(0) 编辑
摘要:React based applications often use controlled inputs, meaning the input event leads to the application code setting the value of the very input we’re 阅读全文
posted @ 2018-05-24 21:23 Zhentiw 阅读(260) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we’ll add tests that finds a focused input. We’ll use Chrome’s dev tools from inside the Cypress runner to inspect the element and upd 阅读全文
posted @ 2018-05-24 21:10 Zhentiw 阅读(279) 评论(0) 推荐(0) 编辑
摘要:Adding Cypress to a project is a simple npm install away. We won’t need any global dependencies beyond node and npm to get started with Cypress. In th 阅读全文
posted @ 2018-05-24 20:51 Zhentiw 阅读(242) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示