<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Playwrights on EgolessQA</title>
    <link>http://egolessqa.com/playwright/</link>
    <description>Recent content in Playwrights on EgolessQA</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 01 Jun 2025 11:00:00 +0200</lastBuildDate>
    <atom:link href="http://egolessqa.com/playwright/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>API Testing with Playwright and Zod: Detecting API Changes with Schema Validation</title>
      <link>http://egolessqa.com/playwright/pw-zod-api/</link>
      <pubDate>Sun, 01 Jun 2025 11:00:00 +0200</pubDate>
      <guid>http://egolessqa.com/playwright/pw-zod-api/</guid>
      <description>&lt;h2 id=&#34;contents&#34;&gt;&#xA;  Contents&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#contents&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#why-api-testing-with-playwright&#34; &gt;Why API Testing with Playwright&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#why-schema-validation&#34; &gt;Why Schema Validation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#test-app&#34; &gt;Test App&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#our-first-schema--login-endpoint&#34; &gt;Our First Schema – Login Endpoint&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#direct-playwright-request-with-zod-validation&#34; &gt;Direct Playwright Request with Zod Validation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#example-2-using-a-custom-api-client-with-zod&#34; &gt;Example 2: Using a Custom API Client with Zod&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#errors-should-also-have-a-consistent-schema&#34; &gt;Errors Should Also Have a Consistent Schema&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#using-apiclient-in-tests&#34; &gt;Using ApiClient in Tests&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#using-fixtures-to-create-api-clients&#34; &gt;Using Fixtures to Create API Clients&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#task-practice-your-skills&#34; &gt;Task: Practice Your Skills&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#summary&#34; &gt;Summary&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;api-testing-with-playwright-and-zod-detecting-api-changes-with-schema-validation&#34;&gt;&#xA;  API Testing with Playwright and Zod: Detecting API Changes with Schema Validation&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#api-testing-with-playwright-and-zod-detecting-api-changes-with-schema-validation&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;API testing is a crucial part of modern software development. Ensuring that your backend services behave as expected not only improves reliability but also helps catch breaking changes early. In this article, we&amp;rsquo;ll explore how to combine &lt;a href=&#34;https://playwright.dev/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Playwright&lt;/a&gt; for API testing with &lt;a href=&#34;https://zod.dev/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Zod&lt;/a&gt; for schema validation. All working examples are available in my repo: &lt;a href=&#34;https://github.com/pajdekPL/playwright-api-clients-and-zod&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/pajdekPL/playwright-api-clients-and-zod&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Playwright fixtures with TypeScript</title>
      <link>http://egolessqa.com/playwright/pw-ts-fixutres/</link>
      <pubDate>Sun, 18 May 2025 15:46:04 +0200</pubDate>
      <guid>http://egolessqa.com/playwright/pw-ts-fixutres/</guid>
      <description>&lt;h2 id=&#34;table-of-contents&#34;&gt;&#xA;  Table of Contents&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#table-of-contents&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#working-example&#34; &gt;Working example&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#playwright-fixtures-with-typescript&#34; &gt;Playwright Fixtures with TypeScript&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#what-are-fixtures&#34; &gt;What Are Fixtures?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#benefits-of-using-fixtures&#34; &gt;Benefits of Using Fixtures&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#playwright-built-in-fixtures&#34; &gt;Playwright Built-in Fixtures&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#how-to-set-up-your-own-fixture&#34; &gt;How to Set Up Your Own Fixture&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#common-use-cases-for-fixtures&#34; &gt;Common Use Cases for Fixtures&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#1-setting-up-a-page-to-a-specific-state&#34; &gt;1. Setting Up a Page to a Specific State&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#2-downloading-data-from-an-api-or-setting-up-accounts&#34; &gt;2. Downloading Data from an API or Setting Up Accounts&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#3-returning-data-objects-eg-api-responses&#34; &gt;3. Returning Data Objects (eg API Responses)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#example-combining-fixtures&#34; &gt;Example: Combining Fixtures&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#using-multiple-fixtures-from-different-files-in-your-test&#34; &gt;Using Multiple Fixtures from Different Files in Your Test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#worker-scoped-fixtures&#34; &gt;Worker-scoped Fixtures&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#auto-fixtures&#34; &gt;Auto Fixtures&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#conclusion&#34; &gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;working-example&#34;&gt;&#xA;  Working example&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#working-example&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;You can find a working example in my repository &lt;a href=&#34;https://github.com/pajdekPL/pw-ts-fixtures&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;pw-ts-fixtures&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Playwright Visual Tests with GIT-LFS and Docker</title>
      <link>http://egolessqa.com/playwright/pw-visual-tests-git-lfs-docker/</link>
      <pubDate>Sat, 14 Dec 2024 16:00:00 +0200</pubDate>
      <guid>http://egolessqa.com/playwright/pw-visual-tests-git-lfs-docker/</guid>
      <description>&lt;h2 id=&#34;table-of-contents&#34;&gt;&#xA;  Table of Contents&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#table-of-contents&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#why-git-lfs-for-visual-testing&#34; &gt;Why Git LFS for Visual Testing?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#working-example&#34; &gt;Working example&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#benefits-of-version-controlled-screenshots&#34; &gt;Benefits of Version-Controlled Screenshots&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#setup-instructions&#34; &gt;Setup Instructions&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#install-git-lfs&#34; &gt;Install Git LFS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#configure-git-lfs-for-screenshots&#34; &gt;Configure Git LFS for Screenshots&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#set-up-playwright-visual-testing&#34; &gt;Set up Playwright Visual Testing&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#creating-baseline-screenshots&#34; &gt;Creating Baseline Screenshots&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#running-visual-tests&#34; &gt;Running Visual Tests&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#building-and-running-playwright-in-docker&#34; &gt;Building and Running Playwright in Docker&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#pull-request-example&#34; &gt;Pull Request example&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#screenshot-management-strategy&#34; &gt;Screenshot Management Strategy&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#best-practices&#34; &gt;Best Practices&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#common-issues-and-solutions&#34; &gt;Common Issues and Solutions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#conclusion&#34; &gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;playwright-visual-tests-with-git-lfs-and-docker&#34;&gt;&#xA;  Playwright Visual Tests with GIT-LFS and Docker&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#playwright-visual-tests-with-git-lfs-and-docker&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;While working on various projects, I struggled to find a good solution for managing golden screenshots in Playwright — so I decided to share my approach, hoping it helps others facing the same challenge! All examples and source code are available here. I assume you are familiar with Playwright, Git and Docker.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
