Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Argos visual regression tests

We use Argos CI to detect visual regressions on Docusaurus.

This workspace can be run manually, but is generally run through the Argos GitHub Action.

Workflow overview

This workflow runs for main and PR branches, and add a commit status to each PR with a visual diff that we can easily inspect.

The workflow execute the 2 main steps below:

Screenshots

  • Build the website locally with pnpm argos:build (a variant of pnpm build:website:fast)
  • Start the website server with pnpm serve:website on http://localhost:3000
  • Take screenshots of all pages found in sitemap.xml with Playwright
  • Upload all screenshots to Argos CI using the Playwright reporter

Text snapshots

Run manually

To run the screenshot step manually:

pnpm argos:build
pnpm argos:screenshot

To run the text-snapshots step manually:

pnpm argos:build:text-snapshots
pnpm argos:format:text-snapshots
pnpm argos:upload:text-snapshots

How to modify