Route Android back through Gio settings flow
This commit is contained in:
@@ -887,6 +887,20 @@ func TestUIPhoneBackReturnsFromSubscreenToEntries(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIPhoneBackClosesSettingsDialog(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
u := newUIWithModel("phone", vault.Model{})
|
||||
u.securityDialogOpen = true
|
||||
|
||||
if !u.handlePhoneBack() {
|
||||
t.Fatal("handlePhoneBack() = false, want true for open settings dialog")
|
||||
}
|
||||
if u.securityDialogOpen {
|
||||
t.Fatal("securityDialogOpen = true after back, want false")
|
||||
}
|
||||
}
|
||||
|
||||
func TestUISecurityDialogContentDoesNotPanicWithSmallViewport(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user