随笔分类 -  E2E

摘要:Run playwright A basic playwright code example: import {test, expect} from "@playwright/test" test("Math works", () => { expect(1+2).toBe(2); }); // O 阅读全文
posted @ 2023-08-22 14:47 Zhentiw 阅读(20) 评论(0) 推荐(0) 编辑
摘要:Simulate a network error using .intercept() command You can simulate a network condition, where an http request does not make it to server. When that 阅读全文
posted @ 2022-01-03 15:25 Zhentiw 阅读(423) 评论(0) 推荐(0) 编辑
摘要:Long time ago, frontend developers (or as we called them back then - webmasters) could get away with supporting only one or two resolutions. Those day 阅读全文
posted @ 2020-05-19 03:09 Zhentiw 阅读(199) 评论(0) 推荐(0) 编辑
摘要:It’s pretty likely that we’ll need to login as a particular user for many tests, let’s take our cy.request command and turn it into a custom command t 阅读全文
posted @ 2020-03-03 19:12 Zhentiw 阅读(289) 评论(0) 推荐(0) 编辑
摘要:Use the Most Robust Selector for Cypress Tests Which selectors your choose for your tests matter, a lot. In this lesson, we'll see the recommended Cyp 阅读全文
posted @ 2019-09-19 16:01 Zhentiw 阅读(336) 评论(0) 推荐(0) 编辑
摘要:Load Data from Test Fixtures in Cypress When creating integration tests with Cypress, we’ll often want to stub network requests that respond with larg 阅读全文
posted @ 2019-08-23 15:56 Zhentiw 阅读(215) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-24 01:07 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-24 01:00 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Requests that aren't stubbed will hit our real backend. To ensure we've stubbed all our routes, we can use the force404 method to send 404s from any u 阅读全文
posted @ 2019-06-21 23:13 Zhentiw 阅读(351) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-21 03:20 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-20 02:45 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-18 02:34 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Which selectors your choose for your tests matter, a lot. In this lesson, we'll see the recommended Cypress best practices for selectors, and why we s 阅读全文
posted @ 2019-06-17 23:18 Zhentiw 阅读(175) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-17 03:39 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-17 02:58 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-06-12 02:26 Zhentiw 阅读(5) 评论(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 阅读(432) 评论(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 阅读(353) 评论(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 阅读(568) 评论(0) 推荐(0) 编辑
摘要:Take your end to end tests to the next level by comparing your current application's view with an already accepted screenshot. With the combination of 阅读全文
posted @ 2018-07-10 20:53 Zhentiw 阅读(439) 评论(0) 推荐(0) 编辑

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