mirror of
https://github.com/karatektus/pl_mail.git
synced 2026-10-25 01:54:10 +00:00
Point the camera at the admin screen before taking its picture
The admin screenshot in the README was a red Symfony exception page — "Access Denied. The user doesn't have ROLE_ADMIN." — and had been for as long as it has existed. The capture ran as the shared fixture user, which is not an administrator, and nothing failed: a screenshot of a 403 is a perfectly good screenshot. Two fixes, and the second is the one that matters. The admin capture gets its own session and its own administrator, for the reason admin-panels.spec.ts already gives — granting ROLE_ADMIN to the shared user mid-run deauthenticates every other spec. And every capture in the file now goes through capture(), which refuses to write a PNG of a Symfony error page. Each of the other seven happens to assert something visible first, which is why only the admin one rotted; a habit that holds seven times out of eight is a rule waiting to be written down. The demo mailbox is seeded for the administrator too. The picture is of the admin screen, but the sidebar is in shot, and one reading "No accounts yet" beside "No labels yet" says the app is empty. All eight are regenerated. calendar.png now shows the time grid rather than the column list it was taken from. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d820d2be48
commit
394bf60fde
9 files changed
+79
-14
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Reference in new issue
Block a user