Reducing E2E Test Flakiness by Blocking Third-Party Requests in Puppeteer
Learn how to use Puppeteer's request interception to block third-party analytics and ads, reducing E2E test flakiness and improving execution speed.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use Puppeteer's request interception to block third-party analytics and ads, reducing E2E test flakiness and improving execution speed.
Protractor’s waitForAngularEnabled lets you toggle Angular synchronization. Disable it on non‑Angular pages to avoid false positives and speed up tests, then re‑enable before returning to Angular pages. Learn how, with a concrete example, trade‑offs, and a migration checklist.
Learn when to use cy.intercept() over the deprecated cy.route() to handle asynchronous network requests, stub API errors, and avoid the pitfalls of contract drift in Cypress.
Learn how to apply Protractor’s Element Object Model to keep Angular end‑to‑end tests readable and maintainable, with a concrete login‑page example and practical verification steps.
Playwright's page.route() intercepts network requests at the browser layer, letting you mock APIs without external dependencies. This post shows a concrete pattern for reliable UI tests, common pitfalls with pattern matching and content-type, and how to verify mocks actually fired using traces.
Protractor’s Angular locators (by.model, by.binding, by.repeater) let tests find elements via data bindings, cutting flakiness in legacy AngularJS suites. They work only with Protractor ≤7.0.0 on pre‑Ivy apps and are deprecated, so verify before relying on them.
Playwright’s browser contexts let you run many isolated E2E tests in parallel without launching a new browser each time. Learn how to create contexts, serialize state, and avoid common pitfalls in this hands‑on guide.
Learn how to choose between Role, Text, and Test-ID locators in Playwright to reduce test flakiness and improve accessibility auditing.
A decision guide for Playwright authentication persistence: use storageState for 90% faster auth reuse across parallel workers, with per-worker files, session validation, and hybrid fallback for multi-role tests. Includes globalSetup implementation, debugging traces, and CI artifact handling.