You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: argos/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,31 @@ We use [Argos CI](https://argos-ci.com) to detect visual regressions on Docusaur
4
4
5
5
This workspace can be run manually, but is generally run through the [Argos GitHub Action](../.github/workflows/argos.yml).
6
6
7
+
## Workflow overview
8
+
7
9
The workflow execute those following steps:
8
10
9
-
- Build the website locally with `pnpm build:website:fast`
11
+
- Build the website locally with `pnpm argos:build` (a variant of `pnpm build:website:fast`)
10
12
- Start the website server with `pnpm serve:website` on [http://localhost:3000](http://localhost:3000)
11
13
- Take screenshots of all pages found in `sitemap.xml` with Playwright
12
-
- Upload all screenshots to [Argos CI](https://argos-ci.com)
14
+
- Upload all screenshots to [Argos CI](https://argos-ci.com) using the [Playwright reporter](https://argos-ci.com/docs/reference/playwright)
15
+
- Upload [HTML/CSS/JS files to also diff them on Argos](https://argos-ci.com/docs/learn/how-to-guides/visual-coverage/compare-non-image-files) using `pnpm argos:upload-text-snapshots`
13
16
14
17
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.
15
18
16
-
---
19
+
## Run manually
20
+
21
+
To run this manually, use:
22
+
23
+
```bash
24
+
pnpm argos:build
25
+
pnpm argos:screenshot
26
+
pnpm argos:upload-text-snapshots
27
+
```
28
+
29
+
The Playwright reporter will upload the screenshots to Argos.
17
30
18
-
Some additional capabilities:
31
+
## How to modify
19
32
20
33
- Use [./tests/screenshot.spec.ts](./tests/screenshot.spec.ts) to customize the screenshots we take, eventually filter out some useless sitemap pages like versioned docs
21
34
- Use [./tests/screenshot.css](./tests/screenshot.css) to hide flaky CSS elements: iframe, video, gif...
0 commit comments