Reset remote sync dialog scroll state
This commit is contained in:
@@ -6781,6 +6781,19 @@ func TestUIRemoteSyncSetupMatchingCredentialsUsesMatchingHost(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIOpenRemoteSyncSetupDialogResetsDialogScrollPosition(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
u := newUIWithModel("desktop", vault.Model{})
|
||||
u.syncDialogList.Position = layout.Position{First: 2, Offset: 48, BeforeEnd: true}
|
||||
|
||||
u.openRemoteSyncSetupDialog()
|
||||
|
||||
if got := u.syncDialogList.Position; got != (layout.Position{}) {
|
||||
t.Fatalf("syncDialogList.Position = %#v, want zero position after opening setup dialog", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIAdvancedSyncMatchingRemoteCredentialEntriesUsesSavedBindingForCurrentVault(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user