fix: account menu matches the redesigned board: System, Light, Dark stay in the menu and the sheet, and the visual-check exception on profile "Account menu" in web/visual/states.ts is removed

This commit is contained in:
fsylvain committed 2026-09-29 23:31:04 +02:00
1 parent 6dc47789ef
commit 27dadbbfa6
6 files changed
+68 -20

No files matched your search

+15 -3
View File
@@ -92,7 +92,7 @@ Feature: Profile page, display name and the account menu
checked (kept from the shipped menu), a separator, and "Log out" (icon log-out); items are
32 px on desktop and 48 px at 15 px text on mobile
And activating "Profile" navigates to /profile and closes the menu (when already on /profile
it only closes); activating a theme item sets the preference and closes the menu;
it only closes); activating a theme item sets the preference and, in the desktop popover, keeps the menu open (the mobile sheet closes);
activating "Log out" behaves as today: POST /v1/auth/logout in a try/finally, then
session.clear() and a navigation to /login
And avatar initials are the uppercased first Unicode character of each of the first two words
@@ -296,7 +296,10 @@ Feature: Profile page, display name and the account menu
And its header shows "marta" in semibold and "marta@renew.example" in muted 12 px
And below it are "Profile" (circle-user), a separator, "System", "Light", "Dark" (the
current preference checked), a separator, and "Log out" (log-out)
And every item is 32 px high
And "Profile" is not highlighted
And "System", "Light" and "Dark" form one group where choosing one applies the theme at once
and keeps the menu open
Scenario: Account menu — opened from the drawer on mobile
Given the user is on /home on a viewport below lg and the navigation drawer is open
@@ -305,8 +308,17 @@ Feature: Profile page, display name and the account menu
with the Home page behind it
And its header shows a 36 px avatar "MA", the name "marta" at 15 px semibold and the email
"marta@renew.example" muted
And its items are 48 px high: "Profile", a separator, "System", "Light", "Dark", a separator,
"Log out"
And its items are 48 px high at 15 px text: "Profile", a separator, "System", "Light", "Dark",
a separator, "Log out"
And the sheet has the same items in the same order as the desktop popover, so it is no taller
than the board's sheet
Scenario: Account menu matches the board with no visual exception
Given web/visual/states.ts has no exception on the profile state "Account menu"
When `task visual:check -- profile "Account menu"` runs at desktop and mobile, light and dark
Then every capture is within 10 %
And System, Light and Dark are present in the popover and in the sheet
And item heights are 32 px on desktop and 48 px on mobile
Scenario Outline: Closing the menu
Given the account menu is open