Anchor sync menu below chevron
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user