Align desktop pane workflow with phone
This commit is contained in:
@@ -291,6 +291,39 @@ func TestUINavigationHeaderMatchesAcrossDesktopAndPhoneForEntries(t *testing.T)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIGroupBarDoesNotShowExplicitNavigationButtonsAcrossModes(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
|
||||
|
||||
if desktop.groupBarShowsExplicitNavigationButtons() {
|
||||
t.Fatal("desktop.groupBarShowsExplicitNavigationButtons() = true, want false")
|
||||
}
|
||||
if phone.groupBarShowsExplicitNavigationButtons() {
|
||||
t.Fatal("phone.groupBarShowsExplicitNavigationButtons() = true, want false")
|
||||
}
|
||||
}
|
||||
|
||||
func TestUITopRightActionOrderMatchesAcrossModes(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
|
||||
|
||||
want := []string{"Sync", "Lock", "Menu"}
|
||||
if got := desktop.topRightActionOrder(); !slices.Equal(got, want) {
|
||||
t.Fatalf("desktop.topRightActionOrder() = %v, want %v", got, want)
|
||||
}
|
||||
if got := phone.topRightActionOrder(); !slices.Equal(got, want) {
|
||||
t.Fatalf("phone.topRightActionOrder() = %v, want %v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUICurrentVaultSummary(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user