Align desktop entries pane order with phone
This commit is contained in:
@@ -251,6 +251,30 @@ func TestUISearchBehaviorIsConsistentAcrossDesktopAndPhoneLayouts(t *testing.T)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIListPanelTopSectionsMatchAcrossDesktopAndPhoneForEntries(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
desktop := newUIWithModel("desktop", vault.Model{})
|
||||
desktop.state.Section = appstate.SectionEntries
|
||||
phone := newUIWithModel("phone", vault.Model{})
|
||||
phone.state.Section = appstate.SectionEntries
|
||||
|
||||
want := []listPanelTopSection{
|
||||
listPanelTopSearch,
|
||||
listPanelTopNavigation,
|
||||
listPanelTopPath,
|
||||
listPanelTopGroup,
|
||||
listPanelTopGroupTools,
|
||||
listPanelTopPrimary,
|
||||
}
|
||||
if got := desktop.listPanelTopSections(); !slices.Equal(got, want) {
|
||||
t.Fatalf("desktop.listPanelTopSections() = %v, want %v", got, want)
|
||||
}
|
||||
if got := phone.listPanelTopSections(); !slices.Equal(got, want) {
|
||||
t.Fatalf("phone.listPanelTopSections() = %v, want %v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUICurrentVaultSummary(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user