Skip to content

Commit 2ebf292

Browse files
Switch VRT from Lost Pixel to Argos (#98)
Replace Lost Pixel visual regression testing with Argos' Playwright integration, while preserving the existing sitemap-driven full-page coverage at the current mobile and desktop widths.
1 parent abba2a8 commit 2ebf292

8 files changed

Lines changed: 339 additions & 1538 deletions

File tree

.github/workflows/vrt.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
visual-regression:
3030
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
3131
runs-on: ubuntu-latest
32-
name: Lost Pixel
32+
name: Argos
3333

3434
steps:
3535
- name: Checkout
@@ -46,13 +46,13 @@ jobs:
4646
- name: Build app
4747
run: npm run build
4848

49-
- name: Start server (in background)
50-
run: npm run preview &
49+
- name: Install Playwright browser
50+
run: npx playwright install --with-deps chromium
5151

52-
- name: Lost Pixel
53-
uses: lost-pixel/lost-pixel@v3.22.0
52+
- name: Argos
53+
run: npm run test:vrt
5454
env:
55-
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}
55+
GITHUB_TOKEN: ${{ github.token }}
5656

5757
deploy-production:
5858
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
.netlify
55
dist/
66
node_modules/
7+
playwright-report/
8+
screenshots/
79
src/env.d.ts
10+
test-results/

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Source for [johnkurkowski.com](https://johnkurkowski.com).
88

99
npm install
1010

11+
Install Playwright browsers only if you plan to run browser-based tests locally.
12+
13+
npx playwright install chromium
14+
1115
### Running
1216

1317
npm start
@@ -19,9 +23,8 @@ Source for [johnkurkowski.com](https://johnkurkowski.com).
1923
Tests are run in CI and must pass before production deploy, i.e. pushes to
2024
trunk. Branches deploy regardless of CI passing.
2125

22-
Before push, you can preview [Lost Pixel](https://app.lost-pixel.com/) VRT's
23-
snapshots against your running local server in production mode.
26+
Before push, you can preview [Argos](https://argos-ci.com/) VRT's snapshots
27+
against your built site in production mode.
2428

2529
npm run build
26-
npm run preview &
27-
npx lost-pixel local
30+
npm run test:vrt

lostpixel.config.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)