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
All screenshots taken during this test must be saved inside `<project-root>/screenshots/`.
23
+
2. Check if local Storybook is already running on port 9009. If not, start it:
19
24
```bash
20
25
cd<project-root>&& yarn storybook &
21
26
```
22
-
2. Wait for `http://localhost:9009` to respond before proceeding.
27
+
3. Wait for `http://localhost:9009` to respond before proceeding.
23
28
24
29
## Test procedure
25
30
@@ -28,10 +33,10 @@ For **every story** listed below, perform the full comparison cycle:
28
33
### Comparison cycle (repeat for each story)
29
34
30
35
1.**Navigate to the production story** at the given URL.
31
-
2.**Take a full-page screenshot** and save it as `prod-<story-slug>.png`.
36
+
2.**Take a full-page screenshot** and save it as `screenshots/prod-<story-slug>.png`.
32
37
3.**Take an accessibility snapshot** of the production page.
33
38
4.**Navigate to the same story locally** at `http://localhost:9009`.
34
-
5.**Take a full-page screenshot** and save it as `local-<story-slug>.png`.
39
+
5.**Take a full-page screenshot** and save it as `screenshots/local-<story-slug>.png`.
35
40
6.**Take an accessibility snapshot** of the local page.
36
41
7.**Compare both screenshots visually.** Report any difference in:
37
42
- Text content (every label, placeholder, value, heading, and button text must be identical)
@@ -85,7 +90,7 @@ Test each of the following stories by navigating to the corresponding Storybook
85
90
86
91
## Interaction tests
87
92
88
-
After the static visual comparison of all stories, perform the following interaction tests on the **Dynamic Settings** story. For each interaction, perform the action on both production and local, then compare screenshots and snapshots.
93
+
After the static visual comparison of all stories, perform the following interaction tests on the **Dynamic Settings** story. For each interaction, perform the action on both production and local, then compare screenshots and snapshots. Save all interaction screenshots in the `screenshots/` folder using the naming pattern `screenshots/prod-<interaction-slug>.png` and `screenshots/local-<interaction-slug>.png`.
89
94
90
95
### Period dropdown
91
96
@@ -193,3 +198,11 @@ After all checks are complete, provide a summary:
193
198
- Pass/fail verdict
194
199
195
200
If all checks pass, confirm: **"No visual, textual, or interaction regressions detected. The branch is safe to merge."**
201
+
202
+
## Cleanup
203
+
204
+
After the final report is delivered, delete all contents of the screenshots folder:
205
+
```bash
206
+
rm -rf <project-root>/screenshots
207
+
```
208
+
This ensures no screenshot artifacts remain in the repository after the test run.
0 commit comments