Make phone entry pane fully scrollable
This commit is contained in:
@@ -774,6 +774,38 @@ func TestUIPhoneGroupBrowserToggleDoesNotChangeCurrentGroupToolsState(t *testing
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIPhoneListPanelWithExpandedGroupControlsAndEntriesDoesNotPanic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
u := newUIWithModel("phone", vault.Model{
|
||||
Groups: [][]string{
|
||||
{"Crew"},
|
||||
{"Crew", "Internet"},
|
||||
{"Crew", "eMail"},
|
||||
},
|
||||
Entries: []vault.Entry{
|
||||
{ID: "amazon", Title: "Amazon", Username: "joe", Path: []string{"Crew", "Internet"}},
|
||||
{ID: "mail", Title: "Mail", Username: "joe", Path: []string{"Crew", "eMail"}},
|
||||
},
|
||||
})
|
||||
u.groupControlsHidden = false
|
||||
u.setCurrentPath([]string{"Crew"})
|
||||
u.filter()
|
||||
|
||||
ops := new(op.Ops)
|
||||
gtx := layout.Context{
|
||||
Ops: ops,
|
||||
Constraints: layout.Exact(image.Pt(1080, 900)),
|
||||
}
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
t.Fatalf("listPanel() panicked on phone with groups, controls, and entries: %v", r)
|
||||
}
|
||||
}()
|
||||
|
||||
_ = u.listPanel(gtx)
|
||||
}
|
||||
|
||||
func TestUIAPIAuditSectionShowsRecordedEvents(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user