{"id":27306291,"url":"https://github.com/adequatica/visual-regression-testing","last_synced_at":"2026-05-09T15:09:45.641Z","repository":{"id":287133728,"uuid":"963702036","full_name":"adequatica/visual-regression-testing","owner":"adequatica","description":"Visual Regression Testing with Playwright and Docker","archived":false,"fork":false,"pushed_at":"2025-04-10T05:13:27.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:59:18.317Z","etag":null,"topics":["docker","playwright","testing"],"latest_commit_sha":null,"homepage":"https://adequatica.medium.com/operating-system-independent-screenshot-testing-with-playwright-and-docker-6e2251a9eb32","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adequatica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-10T04:51:45.000Z","updated_at":"2025-04-10T05:14:51.000Z","dependencies_parsed_at":"2025-04-10T06:29:45.979Z","dependency_job_id":"b35d81ce-4c3e-4019-a1ce-b4ad9d2cabeb","html_url":"https://github.com/adequatica/visual-regression-testing","commit_stats":null,"previous_names":["adequatica/visual-regression-testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adequatica%2Fvisual-regression-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adequatica%2Fvisual-regression-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adequatica%2Fvisual-regression-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adequatica%2Fvisual-regression-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adequatica","download_url":"https://codeload.github.com/adequatica/visual-regression-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514198,"owners_count":21116900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","playwright","testing"],"created_at":"2025-04-12T03:59:21.576Z","updated_at":"2026-05-09T15:09:45.627Z","avatar_url":"https://github.com/adequatica.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Regression Testing with Playwright and Docker\n\n[![Run Playwright Screenshot Tests](https://github.com/adequatica/visual-regression-testing/actions/workflows/run-playwright-screenshot-tests.yaml/badge.svg?branch=main)](https://github.com/adequatica/visual-regression-testing/actions/workflows/run-playwright-screenshot-tests.yaml)\n\nThis repository illustrates the article [Operating System Independent Screenshot Testing with Playwright and Docker](https://adequatica.github.io/2025/04/10/operating-system-independent-screenshot-testing-with-playwright-and-docker.html). Actually, Docker is not mandatory for visual regression testing, but the reasons why (and how) it is used here are explained in the article.\n\n## Stack\n\nA basic set of packages for visual regression (screenshot) testing with Playwright, Docker, and TypeScript:\n\n- [Docker](https://www.docker.com) — containerization;\n- [Playwright](https://playwright.dev) — testing framework;\n- [Prettier](https://prettier.io) — code formatter;\n- [ESLint](https://eslint.org) — code linter.\n\nExample website for testing as a default `baseURL`: [CERN](https://home.cern).\n\n## How to Use\n\n1. Clone repository\n2. Install dependencies: `npm install`\n3. Install dependencies for testing framework: `npm run test:install-deps`\n4. **Run Docker**\n5. Build Docker image: `make init-playwright-screenshot-tests`\n6. Grant permissions to run the bash script: `chmod +x ./playwright-screenshot.sh` (only for the first run)\n7. Run tests: `npm run test:screenshots`\n\n### CLI Options\n\n- Update all screenshots:\n\n```\nnpm run test:screenshots -- --update-snapshots\n```\n\n- Run a single test-file:\n\n```\nnpm run test:screenshots -- --grep logo.spec.ts\n```\n\n- Run tests without Docker:\n\n```\nnpm run test:local\n```\n\n---\n\nDo not mix end-to-end tests and screenshot tests. This is why Playwright’s config has a specific name (`playwright.screenshot.config.ts`). Take a look at [UI Testing with TypeScript and Playwright](https://github.com/adequatica/ui-testing) repository for end-to-end tests examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadequatica%2Fvisual-regression-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadequatica%2Fvisual-regression-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadequatica%2Fvisual-regression-testing/lists"}