mirror of
https://github.com/facebook/docusaurus.git
synced 2024-11-25 16:46:13 +08:00
f1272788a4
Some checks failed
Argos CI / take-screenshots (push) Has been cancelled
Build Hash Router / Build Hash Router (push) Has been cancelled
Canary Release / Publish Canary (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Continuous Releases / Continuous Releases (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (18.0) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (20) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (22) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -st) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -st) (push) Has been cancelled
E2E Tests / E2E — npm (push) Has been cancelled
E2E Tests / E2E — pnpm (push) Has been cancelled
|
||
---|---|---|
.. | ||
tests | ||
.gitignore | ||
package.json | ||
playwright.config.ts | ||
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.
The workflow execute those following steps:
- Build the website locally with
yarn build:website:fast
- Start the website server with
yarn serve:website
on http://localhost:3000 - Take screenshots of all pages found in
sitemap.xml
with Playwright - Upload all screenshots to Argos CI
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.
Some additional capabilities:
- Use ./tests/screenshot.spec.ts to customize the screenshots we take, eventually filter out some useless sitemap pages like versioned docs
- Use ./tests/screenshot.css to hide flaky CSS elements: iframe, video, gif...