Skip to content

test(desktop): expect the screen-demo "Open the doors" default action - #12577

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/three-doors-demo-page-tests
Sep 2, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/three-doors-demo-page-tests

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Why

Desktop Swift Static & Test Contracts fails on main in OnboardingFlowTests.testOnboardingProceedActionsUseDefaultActionKeyboardShortcut: it expects 8 isDefaultAction: true sites in SBOnboardingView.swift, and e4316bd added a ninth ("Open the doors", the screen-demo step's proceed action before the doors are opened, mutually exclusive with that step's Continue). Every PR rebased onto main inherits the red; main's own push CI skips the Swift jobs for non-desktop commits, so it reads green there.

This was masked until now by the test-quality ratchet failure that ran first in the same job (fixed on main by af3ffd7).

What

Expect nine sites and assert the "Open the doors" title explicitly, with a comment listing the steps. Test-only; no production change.

Proof

  • xcrun swift test --package-path Desktop --filter OnboardingFlowTests/ → 25 tests, 0 failures
  • python3 desktop/macos/scripts/check_desktop_test_quality.py → OK at baseline
  • Previous head of this PR (before rebase) ran the full Swift job green in CI with this change.

🤖 Generated with Claude Code

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level Git-on-my-level changed the title test(desktop): render the bundled three-doors template instead of reading it test(desktop): unbreak the Swift test job on main (ratchet + onboarding shortcut count) Sep 2, 2026
e4316bd added "Open the doors" as the default action of the
screen-demo step before the doors are opened; it and that step's
Continue are in mutually exclusive branches, so at most one is visible.
The keyboard-shortcut tripwire still expected eight default-action
sites and has failed on main since, hidden behind the test-quality
ratchet failure that ran first in the same job. Expect nine and assert
the new title explicitly.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Git-on-my-level Git-on-my-level changed the title test(desktop): unbreak the Swift test job on main (ratchet + onboarding shortcut count) test(desktop): expect the screen-demo "Open the doors" default action Sep 2, 2026
@Git-on-my-level
Git-on-my-level force-pushed the fix/three-doors-demo-page-tests branch from 553a493 to e3ab9e2 Compare September 2, 2026 05:10
@Git-on-my-level
Git-on-my-level merged commit 8c90efa into main Sep 2, 2026
25 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/three-doors-demo-page-tests branch September 2, 2026 06:25
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.

1 participant