Anchor sync menu below chevron

This commit is contained in:
Joe Julian
2026-04-07 21:25:56 -07:00
parent cbfbe3be14
commit 9b3f10f086
2 changed files with 54 additions and 19 deletions
+16
View File
@@ -324,6 +324,22 @@ func TestUITopRightActionOrderMatchesAcrossModes(t *testing.T) {
}
}
func TestUISyncMenuAnchorsMatchAcrossModes(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.syncMenuDropsBelowTrigger() || !phone.syncMenuDropsBelowTrigger() {
t.Fatal("sync menu should drop below trigger across desktop and phone")
}
if !desktop.syncMenuRightAlignsToTrigger() || !phone.syncMenuRightAlignsToTrigger() {
t.Fatal("sync menu should right-align to trigger across desktop and phone")
}
}
func TestUICurrentVaultSummary(t *testing.T) {
t.Parallel()