Skip to content

Add critical unit tests for vault root, updates, browser, clone (2026-04-02)#198

Merged
dep merged 2 commits intomainfrom
cursor/critical-functionality-tests-9e33
Apr 2, 2026
Merged

Add critical unit tests for vault root, updates, browser, clone (2026-04-02)#198
dep merged 2 commits intomainfrom
cursor/critical-functionality-tests-9e33

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 2, 2026

Summary

Adds focused unit tests for five high-impact flows, with small extracted helpers so the behavior stays testable without spinning up SwiftUI.

Areas covered

  1. Vault root resolution (VaultRootResolver) — opening a file from Finder resolves the vault that contains .synapse on an ancestor.
  2. In-app update banner (UpdateBannerCopy) — titles, subtitles, and SF Symbol names for install / download / restart states.
  3. Mini browser URL bar (MiniBrowserURLNormalizer) — HTTPS defaulting, trimming, preserving explicit http/https.
  4. Clone repository sheet (CloneRepositoryValidation) — Clone is enabled only when URL is non-empty and a destination folder is chosen.
  5. All-files search rows (FileSearchResult) — per-instance Identifiable ids and stored fields.

CI

.github/workflows/tests.yml already runs xcodebuild test on pull requests; no change required.

Reviewer

Please assign @dep as reviewer.

Environment

The automation host is Linux-only; macOS CI should confirm all tests pass.

Open in Web View Automation 

cursoragent and others added 2 commits April 2, 2026 08:06
…clone UI

Move vault root walking into VaultRootResolver (used by SynapseAppDelegate).
Centralize update banner strings, mini-browser URL normalization, and clone
sheet validation in small enums so behavior can be covered by unit tests.

Co-authored-by: Danny Peck <dannypeck@gmail.com>
…rows

Cover Finder open-file vault resolution, update banner copy, in-app browser
URL normalization, clone sheet enablement, and FileSearchResult identity.

Co-authored-by: Danny Peck <dannypeck@gmail.com>
@dep dep marked this pull request as ready for review April 2, 2026 09:56
@dep dep merged commit 4a9c753 into main Apr 2, 2026
6 checks passed
@dep dep deleted the cursor/critical-functionality-tests-9e33 branch April 2, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants