Cover remote setup handoff

This commit is contained in:
Joe Julian
2026-04-06 20:37:01 -07:00
parent 009c4ecbf6
commit 94ee7fd4c0
+6
View File
@@ -6059,6 +6059,12 @@ func TestUIRemoteSyncSetupPersistsBindingAfterSuccessfulPush(t *testing.T) {
if got := u.state.StatusMessage; got != "Remote sync is set up for this vault." { if got := u.state.StatusMessage; got != "Remote sync is set up for this vault." {
t.Fatalf("StatusMessage = %q, want setup success message", got) t.Fatalf("StatusMessage = %q, want setup success message", got)
} }
if u.shouldShowRemoteSyncSetupShortcut() {
t.Fatal("shouldShowRemoteSyncSetupShortcut() = true after setup, want false")
}
if !u.shouldShowDirectRemoteSyncShortcut() {
t.Fatal("shouldShowDirectRemoteSyncShortcut() = false after setup, want true")
}
var reopened session.Manager var reopened session.Manager
if err := reopened.Open(currentPath, key); err != nil { if err := reopened.Open(currentPath, key); err != nil {