Clarify remote setup feedback
This commit is contained in:
@@ -5958,6 +5958,9 @@ func TestUISyncDialogUsesRemoteSetupCopy(t *testing.T) {
|
||||
if u.shouldShowSyncSourceChoices() {
|
||||
t.Fatal("shouldShowSyncSourceChoices() = true, want false for remote setup")
|
||||
}
|
||||
if got := syncDialogSummaryText(syncDialogPurposeRemoteSetup, syncSourceRemote, syncDirectionPush); got != "Push this local vault to a WebDAV target and save that target for future sync." {
|
||||
t.Fatalf("syncDialogSummaryText(remote setup) = %q, want setup-specific summary", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUISyncDialogUsesAdvancedCopy(t *testing.T) {
|
||||
@@ -5978,6 +5981,9 @@ func TestUISyncDialogUsesAdvancedCopy(t *testing.T) {
|
||||
if !u.shouldShowSyncSourceChoices() {
|
||||
t.Fatal("shouldShowSyncSourceChoices() = false, want true for advanced sync")
|
||||
}
|
||||
if got := syncDialogSummaryText(syncDialogPurposeAdvanced, syncSourceRemote, syncDirectionPush); got != "Push the current vault into another WebDAV-backed vault." {
|
||||
t.Fatalf("syncDialogSummaryText(advanced) = %q, want advanced summary", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUIRemoteSyncSetupPersistsBindingAfterSuccessfulPush(t *testing.T) {
|
||||
@@ -6050,6 +6056,9 @@ func TestUIRemoteSyncSetupPersistsBindingAfterSuccessfulPush(t *testing.T) {
|
||||
if got := u.recentRemotes[0].LocalVaultPath; got != currentPath {
|
||||
t.Fatalf("recentRemotes[0].LocalVaultPath = %q, want %q", got, currentPath)
|
||||
}
|
||||
if got := u.state.StatusMessage; got != "Remote sync is set up for this vault." {
|
||||
t.Fatalf("StatusMessage = %q, want setup success message", got)
|
||||
}
|
||||
|
||||
var reopened session.Manager
|
||||
if err := reopened.Open(currentPath, key); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user