Commit 77ce2ae
Fix screenshot tests failing in CI by tagging style_screen_screenshot_test
The `style_screen_screenshot_test.dart` was missing the `@Tags(['screenshot'])` annotation, causing it to:
1. Run during regular test execution (with `--exclude-tags=screenshot`)
2. Fail golden file validation (screenshots don't exist or differ in CI)
3. Not run during screenshot generation (only `test/screenshots/` folder was targeted)
Fixed by:
- Adding `@Tags(['screenshot'])` to `test/style_screen_screenshot_test.dart`
- Changing workflow to use `--tags=screenshot` instead of targeting `test/screenshots/` directory
This ensures:
- Screenshot tests are excluded from regular test runs
- All screenshot tests (regardless of location) run during screenshot generation
- No test failures due to golden file mismatches
Co-authored-by: richardthe3rd <573334+richardthe3rd@users.noreply.github.com>1 parent 6a11b98 commit 77ce2ae
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments