Use desktop overlay model for phone header menus
This commit is contained in:
@@ -356,6 +356,19 @@ func TestUIMainMenuAnchorsMatchAcrossModes(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIHeaderMenusUseOverlayModelAcrossModes(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.headerMenusUseOverlayModel() || !phone.headerMenusUseOverlayModel() {
|
||||
t.Fatal("header menus should use the same overlay model across desktop and phone")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAnchoredMenuXAllowsWiderMenusToExtendLeft(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user