Global Cache: Make Playwright BeforeAll Run Once for All WorkersIntro Let’s start with a quick quiz: How many times will the BeforeAll hook run in the following Playwright code? import { test, expect } from '@playwright/test'; test.beforeAll(() => { console.log('Executing beforeAll...'); }); test('test 1', ()...Aug 12, 2025 · 8 min readvitalets.hashnode.dev
Open bookmarks in a new tab by default — easier said than done“I just want my Chrome bookmarks to open in a new tab by default.” Sounds like a trivial feature, right? As it turns out, implementing this required a deep dive into Chrome APIs, creative hacks, and a journey full of unexpected roadblocks. In this p...May 1, 2025 · 6 min readvitalets.hashnode.dev
Request-Mocking-Protocol: A New Approach to Mocking Server-Side Requests in E2E TestingIn modern web development, end-to-end testing is essential for ensuring that applications behave as expected. When using new features like React Server Components, we often rely on third-party APIs to fetch data on the server. While this approach off...Mar 13, 2025 · 8 min readvitalets.hashnode.dev
"Fix with AI" Button in Playwright HTML ReportIntroduction End-to-end tests are great for ensuring application reliability, but they can bring maintenance headaches. Even minor UI changes can break tests, leaving developers and QAs wasting hours debugging. In this article, I’ll show you how to l...Jan 13, 2025 · 10 min readvitalets.hashnode.dev
Supercharge Your E2E Tests with Playwright-Network-CacheIntro When working with end-to-end testing frameworks like Playwright, handling network requests is often a complex task. Tests that rely on external APIs can be slow and inconsistent, introducing unnecessary flakiness. Network calls that succeed in ...Oct 8, 2024 · 5 min readvitalets.hashnode.dev