Take the website's screenshots with one command

composer screenshots runs Pest browser tests in tests/Screenshots, outside
every test suite: fixed demo data under a frozen clock, desktop (MacBook
14, 2x) and phone (iPhone 15 Pro, 3x) in light and dark, each capture
published at once as WebP at two widths into website/img/screenshots.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
Andreas Reinhold / reini
2026-09-13 12:30:53 +02:00
co-authored by Claude Opus 5
parent 4470c2ed87
commit e49bdf3eb3
51 changed files with 607 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ pest()->extend(TestCase::class)
// EnsureSetupComplete middleware redirects to /setup unless an admin exists.
User::factory()->admin()->create(['email' => 'admin-setup@test.com']);
})
->in('Feature', 'Browser');
->in('Feature', 'Browser', 'Screenshots');
/*
|--------------------------------------------------------------------------