Commit 19de01d
authored
tests: Stabilize screenshot tests and clean up flaky infrastructure (#1220)
* tests: Stabilize screenshot tests and clean up flaky infrastructure
* Update image caption test and refresh screenshots
Updates the Markdown image caption test to use a new caption and image.
Regenerates all related test screenshots to reflect the change.
* Update test scripts to separate snapshot updates in vitest
* Document Vitest usage and remove old screenshot baselines
Add detailed instructions for running and updating Vitest
browser-based unit tests in the README. Remove outdated
screenshot baseline PNGs from __tests__/__screenshots__.
* Update image test to add className and refresh screenshot
Add guidance in README to be selective when updating screenshots.
* Update testing guidelines for React Router and snapshot usage1 parent caa1dfc commit 19de01d
File tree
81 files changed
+75
-19
lines changed- .github/workflows
- __tests__
- __screenshots__
- ApiLayout_.test.jsx
- ApiOverviewLayout_.test.jsx
- Banner_.test.jsx
- BlogArticle_.test.jsx
- Blog_.test.jsx
- Button_.test.jsx
- CodeExample_.test.jsx
- CommunityLayout_.test.jsx
- DocsLayout_.test.jsx
- DocsOverview_.test.jsx
- MainLayout_.test.jsx
- MarkdownComponents_.test.jsx
- SearchBox_.test.jsx
- SidebarLayout_.test.jsx
- SyntaxLookup_.test.jsx
- Tag_.test.jsx
- styles
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
81 files changed
+75
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments