Skip to content

test(desktop): expose meeting-link copy keycap UI probes and viewport checks - #5177

Merged
tyler-dane merged 54 commits into
mainfrom
cursor/meeting-copy-keycap-8feb
Nov 11, 2026
Merged

tyler-dane merged 54 commits into
mainfrom
cursor/meeting-copy-keycap-8feb

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Exposes meeting-link copy keycap UI probes and wide-viewport XCTest parity with web. Fixes invalid AX geometry on Intel wide launches and stabilizes window lookup by deferring the event form until stable layout geometry is published.

Wide viewport stability (launch race)

Root cause: XCTest evaluated app.windows["Compass"] while the demo grid + event form AX tree was still mounting, so snapshot evaluation timed out (not the 8s waitForExistence budget).

Fix: Early window geometry mirror after installRootContent, defer OPEN_FOCUSED_EVENT_FORM until viewDidAppear stable geometry (WideViewportLaunchCoordination), identifier-based waitForMainWindow in XCTest.

Wide XCTest evidence (no workflow reruns)

Six consecutive passes on macOS Intel (two green CI jobs × 3 passes each when WIDE_VIEWPORT_UI_TEST_REPEAT was 3):

Mandatory CI now defaults to one wide pass per job (WIDE_VIEWPORT_UI_TEST_REPEAT default 1).

Cleanup (queue-ready)

Scope

XCUIT / macOS Accessibility API UI automation on CI runners — not spoken VoiceOver or signed/notarized desktop acceptance.

Open in Web Open in Cursor 

cursoragent and others added 26 commits November 7, 2026 04:16
Product already rendered Mod+Shift+L chips; they were accessibility-hidden
like web aria-hidden keycaps. Expose XCTest probe ids under -COMPASS_UI_TEST
and add default plus 1440×960 viewport coverage for meeting copy hints.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Publish compass-native-main-window-geometry from the wide viewport policy,
avoid pinning oversized min/max when the runner screen is too small, and
require achieved 1440×960 plus window/screen-visible hittable link/keycaps.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Geometry probe records screen=1024×677 on GitHub macos-latest; XCTSkip
wide parity instead of false-green scroll-only checks. Inventory keeps
meeting-copy-keycap passing and marks meeting-link-viewport blocked.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Use audit-valid unreviewed for meeting-link-viewport; assert entire element
frames inside window and scroll viewport; split wide XCTest to
EventFormMeetingLinkWideViewportTests on macos-26-intel with documented
vmware-resolutionSet probe when available. arm64 shards log geometry only.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Wait for grid focus before expensive form AX queries on Intel wide job.
Upgrade actionlint to 1.7.12 so macos-26-intel validates without ignores.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Stop pinning min/max window size during meeting-link wide policy (AX stall).
Open the UI-test event form on the main queue; skip KitTests on Intel wide rebuild.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Gate on titled grid button before targeted form and geometry identifiers.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Run wide XCTest after UI shards; restore wide window pinning from green run.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Wait for the lightweight XCTest title mirror before querying the SwiftUI form.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Avoid a second async resize racing UI-test form open; wait for geometry before title probe.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Do not skip meeting-link wide coverage after an unrelated shard failure.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Republish viewport geometry when the grid focus mirror updates; avoid window
layoutChanged storms on the geometry probe; gate the wide test on window value
before scoped staticText queries.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Keep product probe stability changes; drop grid window predicate that continued after timeout.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
XCTest reads 1440x960 probe fields from the Compass window value so the wide
leg avoids child-tree snapshots; grid title skips the window mirror in wide mode.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Mirror NSScreen and target size on the window before contentView-dependent work;
fail wide XCTest fast when geometry or form probes never appear.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Republish geometry after UITest window reset on install; surface model-init
failures on the window value mirror; replace XCTWaiter predicate with the
same RunLoop poll pattern NativeLaunchTests uses for window AX.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 3 commits November 7, 2026 14:28
Wait for runningForeground before Compass window AX reads; existence wait
triggered 148s snapshot timeout on Intel without reaching geometry polling.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Append /tmp NDJSON launch policy events without AX; CI captures screenshots,
thread samples, and xcresulttool exports; simplify prior window-value layering.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Skip duplicate wide viewport resize on viewDidAppear, defer probe
layoutChanged storms until the next run-loop turn, pin content size
instead of decorated frame min/max, and skip Sparkle during UI tests.
Watchdog samples runner via broader pgrep and records sample metadata.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Register EventFormMeetingLinkWideViewportTests under standaloneJobs and
extend shard assignment tests so matrix shards plus dedicated jobs cover
every UI test class without weakening the macos gate.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 5 commits November 10, 2026 16:07
Bring #5177 up to date with main before macOS parity re-check.
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Wide meeting-link launches still use -COMPASS_UI_TEST for fixtures and
SwiftUI accessibility, but skip AppKit probe siblings beside NSHostingView
that produced invalid AX geometry. Publish geometry on the window only and
reapply viewport policy from viewDidAppear.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Hide the unbounded grid-focus layout container from accessibility,
keep the 44pt overlay only, and skip grid focus AX mirrors during wide
XCUITest while validating card accessibility screen frames.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Stop attaching unbounded frame sizes to accessibility roots for the
event form and overlay toasts. Use hidden layout-only containers so
XCUITest can snapshot the Compass window on the wide viewport job.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Hold the in-flight unhide PUT until the superseding hide is queued so the
test matches HiddenEventsStore generation semantics instead of relying on
async let scheduling order.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 5 commits November 10, 2026 19:07
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Re-check write generation after the remote setHiddenEvents call so an
older commit returns superseded instead of applied when a newer hide
was queued during the network round trip.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Post layoutChanged after syncing the focused event proxy on normal
launches. Only wide-viewport UITest and mirror probes stay gated.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Publish window geometry before the demo grid mounts, defer opening the
event form until stable wide layout, and resolve the main window by
identifier in XCTest. Run the wide leg three times per CI job.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 5 commits November 10, 2026 22:57
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Merge current main (#5216 swift-packages cache). Restore main
HiddenEventsStore tests, remove stress workflow/script, default wide
viewport repeat to 1, keep wide Intel job on test-macos.yml.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 0b2f185 Nov 11, 2026
41 checks passed
@tyler-dane
tyler-dane deleted the cursor/meeting-copy-keycap-8feb branch November 11, 2026 03:06
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