How to Exclude Playwright Test Traffic from Google Analytics

Dec 11, 2022. 12 min read.

Let's filter out automated UI tests traffic from Google Analytics. We will use Playwright's configuration file to set up a debug_mode variable on browser's localStorage to be picked up by Google Analytics configuration. This way we can run our automated tests in any environment with any client IP and be certain that Google Analytics data is not being polluted.
Cover photo for How to Exclude Playwright Test Traffic from Google Analytics post

How to Wait for Single Page Navigation and Re-hydration with Playwright and React Router

Jul 28, 2022. Last updated on Dec 21, 2022. 6 min read.

We look into ways to write robust end-to-end tests involving navigation between pages in a single page application (pun intended). We evaluate page-specific element selectors approach and come up with the custom "UI is ready" router navigation event in attempt to skip element selectors altogether.
Cover photo for How to Wait for Single Page Navigation and Re-hydration with Playwright and React Router post
♥ Built with joy, Gatsby, React, TypeScript and GraphQL ♥
© 2023