Anchor main menu below trigger

This commit is contained in:
Joe Julian
2026-04-07 21:34:33 -07:00
parent 9b3f10f086
commit edf0a9090d
2 changed files with 61 additions and 36 deletions
+16
View File
@@ -340,6 +340,22 @@ func TestUISyncMenuAnchorsMatchAcrossModes(t *testing.T) {
}
}
func TestUIMainMenuAnchorsMatchAcrossModes(t *testing.T) {
t.Parallel()
desktop := newUIWithSession("desktop", summarySession{hasVault: true})
desktop.state.Section = appstate.SectionEntries
phone := newUIWithSession("phone", summarySession{hasVault: true})
phone.state.Section = appstate.SectionEntries
if !desktop.mainMenuDropsBelowTrigger() || !phone.mainMenuDropsBelowTrigger() {
t.Fatal("main menu should drop below trigger across desktop and phone")
}
if !desktop.mainMenuRightAlignsToTrigger() || !phone.mainMenuRightAlignsToTrigger() {
t.Fatal("main menu should right-align to trigger across desktop and phone")
}
}
func TestUICurrentVaultSummary(t *testing.T) {
t.Parallel()