随笔分类 - E2E
摘要:Run playwright A basic playwright code example: import {test, expect} from "@playwright/test" test("Math works", () => { expect(1+2).toBe(2); }); // O
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要: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
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要: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
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:Use custom Cypress command for reusable assertions We’re duplicating quite a few commands between the registration and login of our user for assertion
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文