Playwright
4 articles tagged with Playwright.
Cookie consent on a static blog
Measure the cookies a static site really sets, see what the rules ask of a blog, and load Google Analytics only after consent, with a small store, a fair banner and tests that check it.
7 min read
A Content Security Policy for an Astro site
Add a Content Security Policy to a static Astro site with security.csp: hashed inline scripts, third parties, why strict-dynamic broke the islands, and tests that fail on any violation.
5 min read
Moving a blog from Gatsby to Astro without a regression
How this blog moved from Gatsby to Astro with the same URLs, HTML and behaviour, and how we proved it: an HTML oracle, pixel diffs and interaction tests on both builds.
6 min read
Visual review for an Angular app: a Playwright gallery of every page
Learn how to build a Playwright gallery that photographs every route of an Angular app, in both themes and three widths, so a human can review the layout unit tests never see.
7 min read