Skip to content

docs(core): drive a Mac app with @e2e-dev/core and desktop() (GTM-1179) - #2499

Merged
kdy1 merged 4 commits into
mainfrom
kacper/gtm-1179-core-desktop-docs
Nov 30, 2026
Merged

kdy1 merged 4 commits into
mainfrom
kacper/gtm-1179-core-desktop-docs

Conversation

@kacperkapusciak

@kacperkapusciak kacperkapusciak commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

What

The @e2e-dev/core guide has a "Drive a desktop app" section: launch(desktop(), { app: { appPath } }) from @e2e-dev/desktop/engine, a session with a desktop fixture, and what to do for an app that opens no window in the background. The @e2e-dev/core reference now lists desktop() wherever it listed only web() and mobile().

Why

@e2e-dev/desktop/engine exists so a @e2e-dev/core program can drive a Mac app, but the Core guide only showed a browser and a device, and the reference said bundleId, appPath, and the session fixtures were for mobile() and web() only. A reader had no way to find out it works.

How it works

  1. docs/core.mdx:170 adds the section after "Drive an app on a device". Its example is docs/examples/core/desktop.ts, registered in scripts/check-docs-examples.ts:34, so it typechecks against the built packages and the page copy can't drift. A Note links to /desktop#set-up for macOS 13+ and the two permissions instead of repeating them.
  2. docs/core.mdx:195 says app.open() launches in the background unless launch({ headed: true }), and that an app with no background window needs headed: true or desktop({ physicalInput: true }). The engine's own error names --headed, a CLI flag a Core script doesn't have.
  3. docs/reference/core.mdx:
    • headed (line 71) brings a desktop app to the front.
    • INVALID_CONFIG (line 86) names desktop()'s refusals from validateApp in packages/desktop/src/engine.ts:98.
    • The app table (line 91) adds desktop() to bundleId, appPath (.app only), and launchArguments. permissions now reads web(), mobile(), since desktop() refuses it.
    • The Session table (line 174) gains the desktop row.
  4. The description and lede of both pages, packages/core/README.md, and the @e2e-dev/core row of the root README.md say "or a Mac app".

The page title stays "Browser and device automation": renaming it moves the sidebar label and the page's search title for one engine.

Verified

Ran it locally: yes

  • Built @e2e-dev/core, @e2e-dev/desktop, its native driver, and the desktop testbed app (apps/desktop-testbed/build/SignInForm.app). Ran docs/examples/core/desktop.ts with only appPath pointed at the testbed, from a scratch project that links @e2e-dev/core and @e2e-dev/desktop and no e2e:
[ 'Sign In' ]
  • A longer script on the same host: filled the form with a launch({ secrets }) password, checked the box, picked the plan, signed in. The status read Signed in as ada on Team, remembered (password: 7 characters). screen.tree() held no password, the screenshot painted the field black, a missing button threw LOCATOR_NOT_FOUND, and no app process was left after await using closed the host.
  • headed: with headed: false the frontmost app stayed Chrome, with headed: true it was SignInForm.
  • Did not run: an app that opens no window in the background (the claim comes from packages/desktop/src/launch-wait.ts:94 and docs/desktop.mdx), and a clean npm install from the registry. The scratch project's symlinked packages could still reach the workspace e2e, though @e2e-dev/desktop/engine imports none of it.
  • Rendered with e2e-site main against this branch's docs/ (E2E_DOCS_DIR=... pnpm dev). The section is new, so there is no before.
/docs/core, new section /docs/reference/core, app table
core section reference app table

Checklist

  • Changeset added (pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.
  • Breaking change: title carries !, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).
  • Docs updated in the same PR: the docs/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • New Features
    • Added support for driving Mac apps, including launching by bundle ID or .app path and interacting with windows and controls.
    • Added a desktop automation example.
  • Documentation
    • Updated installation guidance and reference details for Mac app automation, including platform, permission, and launch requirements.

@github-actions github-actions Bot added e2e team Opened by the e2e team size:M Up to 99 changed lines, not counting tests, fixtures, translated docs, or the lockfile labels Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Mac app documentation

Layer / File(s) Summary
Package descriptions and installation
README.md, packages/core/README.md, docs/core.mdx, docs/reference/core.mdx
Package descriptions include Mac apps. The Core guide adds @e2e-dev/desktop to its installation guidance.
Desktop usage and reference
docs/core.mdx, docs/reference/core.mdx, docs/examples/core/desktop.ts, scripts/check-docs-examples.ts
The guide and reference describe desktop launch requirements, launch options, and the desktop session member. A new example launches an app, interacts with it, and logs window titles. The example checker associates it with the guide.

Suggested reviewers: kdy1

Change: Other

Merge Risk: Minimal · up to 93f05

This change only adds documentation and a typechecked example for driving Mac apps. It does not change runtime behavior, so merge risk is minimal.

Architecture risk: Low · up to 93f05

The change affects 4 source areas.

Callers using desktop() must provide a bundleId or .app appPath and omit url and permissions; the engine rejects the invalid cases covered by its validation test.

Changed areas: docs, packages/core, README.md, scripts

Review details

Systems and components

  • observed — 3 changed files mapped to docs.
  • observed — packages/core (library) was modified; 1 changed file maps to changed impact.
  • observed — 1 changed file mapped to README.md.
  • observed — 1 changed file mapped to scripts.

Before / after behavior

  • observed — Modified behavior in docs/reference/core.mdx: The documented INVALID_CONFIG conditions now cover desktop requirements and restrictions, including .app-only appPath, and the app table extends bundleId, appPath, identity, and launchArguments to desktop(). It specifies desktop paths as .app only and limits documented permissions support to web() and mobile(); the app description now includes launching a Mac app.
  • observed — Modified behavior in README.md: The package description adds Mac apps to the listed targets; it previously named only browsers and devices.
  • observed — Modified behavior in docs/examples/core/desktop.ts: Adds a desktop automation example that launches the app, performs the sign-in interactions, retrieves the desktop windows, and logs their titles.
  • observed — Modified behavior in packages/core/README.md: The README introduction adds Mac apps to the listed targets and reformats the description of @e2e-dev/core and its relationship to the e2e test runner.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 33667a73-b84e-4911-8518-091320af4546
Commits

Reviewing files that changed from the base of the PR and between 491ddb1 and 93f05b3.

Files selected for processing: 2

  • docs/core.mdx
  • docs/reference/core.mdx
Files skipped from review as they are similar to previous changes: 1

  • docs/core.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web: 95 passed

All 95 tests in 43 files
Test Time
🟢 tests/aria-hidden-flow.e2e.ts · 2 passed 559ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 426ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 133ms
🟢 tests/async-states.e2e.ts · 2 passed 6.9s
🟢 async states › reads the code off the transient toast and verifies it once the button enables 2.2s
🟢 async states › a wrong code is rejected after the toast has gone 4.7s
🟢 tests/canvas-only.e2e.ts · 2 passed 237ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 128ms
🟢 canvas only › a shape out of order paints the error and resets progress 109ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 366ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 197ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 169ms
🟢 tests/cart-totals.e2e.ts · 2 passed 309ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 175ms
🟢 cart totals › a quantity never drops below one 134ms
🟢 tests/checkout-review.e2e.ts · 1 passed 164ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 164ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 496ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 263ms
🟢 context menu trap › the decoy menu items refuse and keep the file 233ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.3s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 264ms
🟢 control inventory › check picks a radio the pick replaces with its summary 175ms
🟢 control inventory › a long press and a double click are told apart from a tap 973ms
🟢 control inventory › the file menu opens on right-click only and Rename renames the file 237ms
🟢 control inventory › setInputFiles attaches files named from the project root 137ms
🟢 control inventory › the details view is left through the browser history 159ms
🟢 control inventory › scrollIntoView brings the footnote into view 153ms
🟢 control inventory › every exercise done shows the success message 1.2s
🟢 tests/css-content-ui.e2e.ts · 2 passed 346ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 208ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 138ms
🟢 tests/date-picker.e2e.ts · 2 passed 573ms
🟢 date picker › navigates three months ahead and books the required date 325ms
🟢 date picker › confirming without the exact date shows the error 248ms
🟢 tests/debounced-search.e2e.ts · 2 passed 2.7s
🟢 debounced search › a decoy one character off is refused 1.4s
🟢 debounced search › picking the exact item adds it to the cart 1.4s
🟢 tests/deferred-dialog.e2e.ts · 1 passed 1.0s
🟢 one submit opens one confirm, even when double-clicked 1.0s
🟢 tests/div-soup.e2e.ts · 2 passed 594ms
🟢 div soup › a wrong code is rejected 263ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 331ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 598ms
🟢 drag and drop › an out-of-order item resets the dropzone 300ms
🟢 drag and drop › dropping Banana then Cherry passes 298ms
🟢 tests/file-round-trip.e2e.ts · 2 passed 311ms
🟢 file round trip › downloads the issued voucher and verifies the same file uploaded back 153ms
🟢 file round trip › rejects a file that is not the voucher, then accepts the issued one 158ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 220ms
🟢 filter deep link › filtering writes the query to the URL 126ms
🟢 filter deep link › opening a shared link restores the filter 94ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 500ms
🟢 gift card purchase › refuses to buy without an amount 133ms
🟢 gift card purchase › refuses a recipient without an at sign 180ms
🟢 gift card purchase › sends the gift card 187ms
🟢 tests/hover-menu.e2e.ts · 2 passed 412ms
🟢 hover menu › a decoy leaf is refused 180ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 232ms
🟢 tests/iframe-form.e2e.ts · 2 passed 478ms
🟢 iframe form › a wrong code is refused by the host page 229ms
🟢 iframe form › the code read from one frame applies through the other 249ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 419ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 111ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 140ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 168ms
🟢 tests/infinite-scroll.e2e.ts · 1 passed 2.7s
🟢 scrolls the feed until the Golden Ticket loads, then claims it 2.7s
🟢 tests/kanban-board.e2e.ts · 3 passed 705ms
🟢 kanban board › pointer drags move both cards into the goal layout 370ms
🟢 kanban board › a swipe along a path drags a card as well 135ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 200ms
🟢 tests/login-form.e2e.ts · 4 passed 729ms
🟢 login form › rejects a malformed email 170ms
🟢 login form › rejects a short password 177ms
🟢 login form › rejects an unknown account 184ms
🟢 login form › signs in and logs out 198ms
🟢 tests/lying-labels.e2e.ts · 4 passed 578ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 132ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 91ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 172ms
🟢 lying labels › visible text drives the payment through 183ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 404ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 134ms
🟢 native dialogs › dismissing the confirm cancels the order 134ms
🟢 native dialogs › a wrong gift code is rejected 136ms
🟢 tests/new-tab-flow.e2e.ts · 2 passed 411ms
🟢 new tab flow › reads the code in the tab the app opens and enters it back in the original tab 225ms
🟢 new tab flow › a tap that opens a tab leaves the screen on the original tab, and activate shows the new one 186ms
🟢 tests/newsletter-signup.e2e.ts · 1 passed 167ms
🟢 subscribe renders no feedback and logs a TypeError (planted bug) 167ms
🟢 tests/onboarding-wizard.e2e.ts · 5 passed 4.3s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 262ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 314ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.1s
🟢 onboarding wizard › the preferences step flips the toggles the brief names and leaves the trap off 1.3s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 1.3s
🟢 tests/order-history.e2e.ts · 2 passed 1.4s
🟢 order history › overview and settings render their panels 163ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.2s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.3s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 455ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 137ms
🟢 otp auto-advance › a wrong code clears every box and starts over 756ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 632ms
🟢 continues only after the banner and the overlay are gone 632ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 445ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 229ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 216ms
🟢 tests/price-sorting.e2e.ts · 3 passed 363ms
🟢 price sorting › opens in the featured order with sale prices struck through 102ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 128ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 133ms
🟢 tests/product-reviews.e2e.ts · 1 passed 108ms
🟢 the running-shoe page lists coffee-grinder reviews (planted bug) 108ms
🟢 tests/promo-storefront.e2e.ts · 1 passed 1.4s
🟢 buys a deal once the promo chrome is out of the way 1.4s
🟢 tests/rich-text-editor.e2e.ts · 2 passed 428ms
🟢 rich text editor › bolding exactly the required word passes the check 211ms
🟢 rich text editor › bold that spills into the previous word fails the check 217ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 515ms
🟢 saved addresses › adds an address and clears the form 173ms
🟢 saved addresses › ignores an add with an empty field 161ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 181ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 367ms
🟢 shadow DOM form › rejects a wrong access code 186ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 181ms
🟢 tests/smoke.e2e.ts · 1 passed 248ms
🟢 home lists the scenarios and opens one 248ms
🟢 tests/stale-dom.e2e.ts · 1 passed 2.2s
🟢 taps the moving target three times across rebuilds of the list 2.2s
🟢 tests/sticky-chrome.e2e.ts · 1 passed 168ms
🟢 accepts the terms once the button clears the sticky footer 168ms
🟢 tests/virtualized-table.e2e.ts · 1 passed 14.6s
🟢 scrolls the windowed table to the Golden Row and claims it 14.6s
🟢 tests/wishlist.e2e.ts · 2 passed 496ms
🟢 wishlist › saving toggles the button and the tab badge 246ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 250ms

Tested by e2e 0.25.0 · 55.7s · web · run artifacts

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 34 passed

35 agent steps · 26 replayed from cache · 25 model calls · 133.5k tokens (88% cached) · $0.0072

All 34 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 7 passed 7 steps 7.0s
🟢 control inventory › check sets the checkbox and the radio 1 step 588ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 228ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 869ms
🟢 control inventory › a right-click opens the file menu and Rename renames the file 1 step 2.5s
🟢 control inventory › upload attaches the named project files 1 step 2.3s
🟢 control inventory › back returns from the details view to the inventory 1 step 230ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 325ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 306ms
🟢 act signs in with the benchmark account 1 step 306ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 9.7s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 5.1s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.2s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 3.4s
🟢 tests-agent/scenarios.e2e.ts · 22 passed 22 steps · 17 calls 1m 10s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.8s
🟢 act completes lying-labels 1 step · 3 calls 4.1s
🟢 act completes iframe-form 1 step · 3 calls 3.9s
🟢 act completes infinite-scroll 1 step 3.2s
🟢 act completes virtualized-table 1 step 15.4s
🟢 act completes overlay-trap 1 step 832ms
🟢 act completes sticky-chrome 1 step 910ms
🟢 act completes async-states 1 step · 3 calls 6.0s
🟢 act completes debounced-search 1 step 2.3s
🟢 act completes hover-menu 1 step 477ms
🟢 act completes drag-and-drop 1 step 468ms
🟢 act completes kanban-board 1 step 580ms
🟢 act completes context-menu-trap 1 step 2.6s
🟢 act completes stale-dom 1 step 413ms
🟢 act completes otp-auto-advance 1 step 651ms
🟢 act completes date-picker 1 step 766ms
🟢 act completes rich-text-editor 1 step 9.9s
🟢 act completes playbook-cleanup 1 step 508ms
🟢 act completes promo-storefront 1 step 2.2s
🟢 act completes new-tab-flow 1 step · 5 calls 8.1s
🟢 act completes gift-card-purchase 1 step 2.4s
🟢 act filters the list and the URL carries the filter 1 step 203ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 265ms
🟢 act adds an address with a run-unique label 1 step 265ms

Tested by e2e 0.25.0 · 1m 28s · web · run artifacts

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 6 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 1 flaky, 19 passed

24 agent steps · 15 replayed from cache · 34 model calls · 254.2k tokens (80% cached) · $0.0193

⚠️ 1 flaky test passed on a retry

⚠️ act completes Gestures
tests-agent/scenarios.e2e.ts:359

ACTION_FAILED at step 4 of 4: agent.act "Complete this scenario as the screen instructs: long-press the first target, swipe the card left, then double-tap the last target", after 16.7s and 8 model calls

agent.act failed: The cached long-press was already complete. I attempted to swipe the “Swipe me left” card left several times, but the screen remained on Step 2 of 3, so I could not reach the final double-tap target.

  • Turn 5: screenshot({}) → [screenshot] The screen changed substantially since revision b8. Current screen (revision b10, path dev.e2e.benchmark, 18 nodes):
  • Turn 6: swipe({"from":{"x":160,"y":460},"to":{"x":1,"y":460}}) → [swipe] Swiped from (160, 460) to (1, 460).
  • Turn 7: screenshot({}) → [screenshot] The screen changed substantially since revision b10. Current screen (revision b12, path dev.e2e.benchmark, 18 nodes):
  • Screen: dev.e2e.benchmark

Evidence: screenshot, log

All 20 tests in 1 file
Test Agent Time
⚠️ tests-agent/scenarios.e2e.ts · 1 flaky, 19 passed 24 steps · 34 calls 5m 10s
🟢 act completes Login Form 1 step 20.1s
🟢 act completes Infinite Scroll List 1 step 18.2s
🟢 act completes Modal Flow 1 step 9.5s
🟢 act completes Bottom Tabs 1 step 6.4s
🟢 act completes Text Input Variations 1 step 5.5s
🟢 act completes Broken Accessibility 2 steps · 5 calls 12.2s
🟢 act completes Vision Only 2 steps · 1 call 5.8s
⚠️ act completes Gestures (1 failed attempt first) 1 step · 7 calls 16.1s
🟢 act completes Async States 1 step · 10 calls 18.5s
🟢 act completes Debounced Search 1 step 6.5s
🟢 act completes Huge Virtualized List 1 step 1m 48s
🟢 act completes Flattened Registration Form 2 steps · 1 call 7.3s
🟢 act completes Flattened Login 2 steps · 6 calls 14.2s
🟢 act completes Sticky Chrome Target 1 step 8.6s
🟢 act completes WebView Accessibility 1 step · 4 calls 12.3s
🟢 act completes Permission Prompt 1 step 6.0s
🟢 act completes Product Catalog 1 step 7.6s
🟢 act completes Error Recovery 1 step 8.7s
🟢 act completes Choice Controls 1 step 8.3s
🟢 act completes Sequential Onboarding 1 step 9.4s

Tested by e2e 0.25.0 · 5m 31s · android-emulator · run artifacts

@blacksmith-sh

blacksmith-sh Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
tests/integration/test-step.test.ts/test.step around a test timeout >
cuts the call running in a step as the timeout cuts any call, not as one the test did
not await
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 21 passed, 1 skipped

25 agent steps · 12 replayed from cache · 54 model calls · 378.8k tokens (84% cached) · $0.0239

All 22 tests in 1 file
Test Agent Time
⏭️ tests-agent/scenarios.e2e.ts · 21 passed, 1 skipped 25 steps · 54 calls 7m 51s
🟢 act completes Login Form 1 step 40.9s
🟢 act completes Infinite Scroll List 1 step 39.0s
🟢 act completes Modal Flow 1 step 11.6s
🟢 act completes Bottom Tabs 1 step 8.6s
🟢 act completes Text Input Variations 1 step 13.4s
🟢 act completes Broken Accessibility 2 steps · 5 calls 22.3s
🟢 act completes Vision Only 2 steps · 6 calls 25.0s
🟢 act completes Gestures 1 step · 5 calls 18.7s
🟢 act completes Async States 1 step · 10 calls 33.2s
🟢 act completes Debounced Search 1 step · 1 call 27.9s
🟢 act completes Flattened Registration Form 2 steps · 1 call 24.8s
🟢 act completes Flattened Login 2 steps · 10 calls 47.5s
🟢 act completes Sticky Chrome Target 1 step 13.2s
🟢 act completes WebView Accessibility 1 step 12.2s
🟢 act completes Permission Prompt 1 step 11.4s
🟢 act completes Photo Picker 1 step · 2 calls 27.5s
🟢 act completes Product Catalog 1 step 10.2s
🟢 act completes Error Recovery 1 step 9.7s
🟢 act completes Choice Controls 1 step · 5 calls 33.2s
🟢 act completes Stripe PaymentSheet 1 step · 9 calls 29.7s
🟢 act completes Apple Pay 1 step 10.7s
⏭️ act completes Apple Pay Billing Address (skipped: the CI simulator's Apple Pay sheet skips the billing-address step, so the scenario cannot be completed there)

Tested by e2e 0.25.0 · 7m 52s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 68 passed, 1 skipped

All 69 tests in 8 files
Test Time
⏭️ tests/controls.e2e.ts · 26 passed, 1 skipped 2m 34s
🟢 control inventory › a label query resolves a labeled text field 19.1s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 10.0s
🟢 control inventory › a placeholder query and attribute reads find the field 4.8s
🟢 control inventory › getAttribute reads the label, resource id, and class an Appium suite asks for 4.4s
🟢 control inventory › a secure field takes a fill and denies value reads 5.8s
🟢 control inventory › press sends a character and Enter through the soft keyboard 7.6s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 7.2s
🟢 control inventory › toBeFocused follows the focus 6.4s
🟢 control inventory › a switch checks, unchecks, and reports its state 6.9s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.9s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 7.0s
🟢 control inventory › a tab role answers getByRole 3.6s
🟢 control inventory › a radio group reports the checked option 6.2s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.4s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 5.3s
🟢 control inventory › a header answers its accessible name 3.4s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.3s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 5.1s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 6.8s
🟢 control inventory › a double tap lands inside the 300 ms window 6.2s
🟢 control inventory › tap({ count: 3 }) lands three presses 6.1s
🟢 control inventory › an ambiguous locator fails at once 4.7s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 5.9s
🟢 refusals › verbs a device never declares are refused before the engine 3ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 1.7s
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 14 passed 1m 31s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 4.8s
🟢 device fixture › home leaves the app, openApp brings it back where it was 3.9s
🟢 device fixture › foregroundApp sees the home screen after home() 3.8s
🟢 device fixture › closeApp then openApp relaunches on the home list 5.9s
🟢 device fixture › closeApp leaves the next commands on the same device 6.1s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 3.9s
🟢 device fixture › openLink opens the scenario a deep link names 4.2s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 3.5s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 7.6s
🟢 device fixture › device.back pops the scenario 4.2s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.5s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 15.0s
🟢 device fixture › setLocation and clearLocation change what the app reads 17.5s
🟢 device fixture › pressButton shows the volume panel on Android 7.3s
🟢 tests/device.e2e.ts · 8 passed 52.2s
🟢 permission prompt › allowing the system dialog enables the microphone 5.4s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.1s
🟢 permissions all grants the microphone without a system dialog 5.8s
🟢 sequential onboarding echoes the exact values 9.3s
🟢 a shake is sent without an error and leaves the screen readable 4.4s
🟢 a lock and an unlock both complete and leave the app readable 4.8s
🟢 onboarding rejects a malformed email before advancing 5.1s
🟢 dismissing the keyboard over choice controls leaves them as they were 6.3s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 2s
🟢 infinite scroll reaches the target item 27.5s
🟢 product catalog adds exactly two of the right variant 8.0s
🟢 gestures: long-press, then swipe left 7.4s
🟢 gestures: double-tap completes the flow 9.1s
🟢 sticky chrome: accept below the fold, then continue 10.2s
🟢 async states: load, pull to refresh, claim through the toast 11.3s
🟢 huge virtualized list reaches row 512 1m 48s
🟢 tests/flows.e2e.ts · 7 passed 47.0s
🟢 text inputs unlock the submit button 5.7s
🟢 filled text inputs report their values 5.2s
🟢 modal flow confirms through the native alert 8.2s
🟢 bottom tabs act inside the last tab 6.2s
🟢 error recovery retries, then confirms the delete 8.0s
🟢 choice controls place the exact order 5.6s
🟢 debounced search selects the target once results arrive 8.1s
🟢 tests/login-form.e2e.ts · 3 passed 25.2s
🟢 login form › rejects a malformed email 6.6s
🟢 login form › rejects an unknown account 6.7s
🟢 login form › signs in and logs out 11.9s
🟢 tests/scroll-to.e2e.ts · 2 passed 1m 5s
🟢 screen.scrollTo reaches the last row of the list and comes back to the first 40.3s
🟢 locator.scrollTo scrolls the list it names 24.4s
🟢 tests/smoke.e2e.ts · 1 passed 4.5s
🟢 home lists the scenarios and opens one 4.5s

Tested by e2e 0.25.0 · 10m 22s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 1 flaky, 66 passed, 1 skipped

⚠️ 1 flaky test passed on a retry

⚠️ device fixture › setAppearance flips the color scheme the app reads
tests/device-fixture.e2e.ts:27

ASSERTION_FAILED at step 7 of 8: expect.toHaveText getByTestId("color-scheme"), after 5.2s

  • Expected: text "scheme: dark"
  • Observed: text "scheme: light" (1 match)
  • Screen: dev.e2e.benchmark / Control Inventory

Evidence: screenshot, log

All 68 tests in 8 files
Test Time
⚠️ tests/device-fixture.e2e.ts · 1 flaky, 14 passed 2m 2s
⚠️ device fixture › setAppearance flips the color scheme the app reads (1 failed attempt first) 9.3s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 7.5s
🟢 device fixture › the clipboard reads back what was written 6.4s
🟢 device fixture › home leaves the app, openApp brings it back where it was 7.2s
🟢 device fixture › closeApp then openApp relaunches on the home list 8.9s
🟢 device fixture › closeApp leaves the next commands on the same device 12.5s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 6.8s
🟢 device fixture › openLink opens the scenario a deep link names 13.4s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 5.9s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 9.8s
🟢 device fixture › device.back pops the scenario 6.0s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 4.3s
🟢 device fixture › setLocation and clearLocation change what the app reads 10.2s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 9.9s
🟢 device fixture › pressButton is refused on an iOS simulator 4.0s
⏭️ tests/controls.e2e.ts · 25 passed, 1 skipped 3m 7s
🟢 control inventory › a label query resolves a labeled text field 15.5s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 14.6s
🟢 control inventory › a placeholder query and attribute reads find the field 4.5s
🟢 control inventory › getAttribute reads the label, resource id, and class an Appium suite asks for 5.2s
🟢 control inventory › a secure field takes a fill and denies value reads 7.7s
🟢 control inventory › press sends a character and Enter through the soft keyboard 9.3s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 10.2s
🟢 control inventory › toBeFocused follows the focus 7.8s
🟢 control inventory › a switch checks, unchecks, and reports its state 9.9s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 7.9s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 9.7s
🟢 control inventory › a radio group reports the checked option 8.0s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 8.6s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.1s
🟢 control inventory › a header answers its accessible name 4.2s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.2s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 6.8s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 8.3s
🟢 control inventory › tap({ count: 3 }) lands three presses 8.4s
🟢 control inventory › pointer verbs land at the point asked for 9.3s
🟢 control inventory › an ambiguous locator fails at once 5.5s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 11.7s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 246ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device.e2e.ts · 7 passed 1m 18s
🟢 permissions all grants the microphone without a system dialog 10.3s
🟢 sequential onboarding echoes the exact values 24.9s
🟢 isKeyboardShown follows the keyboard up and through a dismissal 7.7s
🟢 a control under the keyboard reads hidden and refuses a tap until the keyboard is dismissed 9.7s
🟢 a shake is sent without an error and leaves the screen readable 4.7s
🟢 onboarding rejects a malformed email before advancing 9.3s
🟢 dismissing the keyboard over choice controls leaves them as they were 11.0s
🟢 tests/flows-lists.e2e.ts · 7 passed 4m 3s
🟢 infinite scroll reaches the target item 34.3s
🟢 product catalog adds exactly two of the right variant 10.2s
🟢 gestures: long-press, then swipe left 8.8s
🟢 sticky chrome: accept below the fold, then continue 12.5s
🟢 async states: load, pull to refresh, claim through the toast 12.6s
🟢 huge virtualized list reaches row 512 2m 31s
🟢 web view coupon form applies the code shown on the page 13.2s
🟢 tests/flows.e2e.ts · 7 passed 1m 8s
🟢 text inputs unlock the submit button 12.4s
🟢 filled text inputs report their values 10.7s
🟢 modal flow confirms through the native alert 9.6s
🟢 bottom tabs act inside the last tab 7.5s
🟢 error recovery retries, then confirms the delete 9.3s
🟢 choice controls place the exact order 7.2s
🟢 debounced search selects the target once results arrive 11.2s
🟢 tests/login-form.e2e.ts · 3 passed 44.2s
🟢 login form › rejects a malformed email 12.3s
🟢 login form › rejects an unknown account 12.5s
🟢 login form › signs in and logs out 19.4s
🟢 tests/scroll-to.e2e.ts · 2 passed 2m 54s
🟢 screen.scrollTo reaches the last row of the list and comes back to the first 1m 45s
🟢 locator.scrollTo scrolls the list it names 1m 9s
🟢 tests/smoke.e2e.ts · 1 passed 9.0s
🟢 home lists the scenarios and opens one 9.0s

Tested by e2e 0.25.0 · 8m 30s · ios-simulator · run artifacts

@kacperkapusciak kacperkapusciak added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 29, 2026

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated review (AI triage pass), not yet read by a maintainer.

Reviewed 491ddb1ee. Docs-only: adds a "Drive a desktop app" section to the Core guide and desktop() rows to the Core reference; every API claim checks out against @e2e-dev/desktop on main, and the example is typechecked through check-docs-examples.

Verified:

  • @e2e-dev/desktop/engine exports desktop without test (engine-entry.ts), and e2e is an optional peer (package.json), so "no e2e needed" holds.
  • INVALID_CONFIG refusals (url, missing bundleId/appPath, permissions) match validateApp; launchArguments is honored (launchArgumentValues: true, L54).
  • headed brings the app forward: launch passes it through (launch.ts:201) to foreground = physicalInput || info.headed (surface.ts:269). The no-background-window advice matches launch-wait.ts:94.
  • desktop.windows() and window.title() exist (desktop.ts:20,49). The /desktop#set-up, /desktop#the-desktop-fixture and /reference/desktop links resolve.
  • CI: Blacksmith's 2 failures are tests/integration/test-step.test.ts ("cuts the call running in a step as the timeout cuts any call"), the known runner test-step timeout flake. Attempt 2 of the same run on the same SHA passed, and a docs-only diff can't reach that test. All 42 checks are green.

Nits

  1. docs/reference/core.mdx:86 - the INVALID_CONFIG row leaves out the third desktop() refusal, an appPath that isn't a .app (engine.ts:110). The app table mentions it, so this is optional.
  2. docs/core.mdx Note - /desktop#set-up opens with npm install --save-dev e2e @e2e-dev/desktop and e2e doctor. A Core reader may think the runner is required. Pointing at the permissions list is enough, or add "(the e2e doctor check needs e2e)".

@kacperkapusciak

Copy link
Copy Markdown
Member Author

Thanks @okwasniewski. Both nits addressed in 93f05b3: the INVALID_CONFIG row now lists an app.appPath that isn't a .app bundle, and the Core note says Core doesn't need the e2e package (only the e2e doctor check on the Desktop page uses it).

@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 29, 2026

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 2 files (changes from recent commits).

View guided diff | Turn on auto-fix | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated review (AI triage pass), not yet read by a maintainer.

Reviewed 93f05b307. Both nits are done: the INVALID_CONFIG row names the non-.app appPath refusal, and the Note says Core needs no e2e package. No must-fixes. The red test (22.22.3, runner) is the known runner test-step timeout flake (a docs-only diff cannot reach it); re-running failed jobs. Label goes on once green.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 29, 2026

@kdy1 kdy1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note

This text was drafted with AI and posted after human approval.

  • Harness: T3 Code
  • AI agents: coordinator: Claude Opus 5.5 (claude-opus-5-5), reviewer: GPT-6.2 Astra (gpt-6.2-astra), reviewer: GPT-6.2 Sol (gpt-6.2-sol), reviewer: Claude Opus 5.5 (claude-opus-5-5), reviewer: Claude Sonnet 5.5 (claude-sonnet-5-5)

Verdict: Approve

This review approves the pull request. The P3 items are optional and do not block the merge.

Reviewed commit: 93f05b307acbd133546e2caf6ec04688ec30925c

  • P3 (non-blocking): 3 (3 inline)

Comment thread docs/reference/core.mdx
| `platform` | `string` |
| `browser` | [`Browser`](/reference/web), with `web()` |
| `device` | [`Device`](/reference/mobile), with `mobile()` |
| `desktop` | [`Desktop`](/reference/desktop), with `desktop()` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P3 · Non-blocking · Other text on these pages still describes only web and mobile

Optional. This does not block the merge.

This row adds desktop() as a core target. Some text that is not in the diff still names only a browser and a device:

  • packages/core/README.md:98: the app option reads "bundleId or appPath for mobile()". packages/core/README.md:100: headed reads "Show the browser window". This README goes to npm, and its first paragraph now says "or a Mac app".
  • docs/reference/core.mdx:128: the platform values are web, ios, android, or a custom engine's label. desktop() is a first-party engine with platform macos (packages/desktop/src/engine.ts:44).
  • docs/reference/core.mdx:132: newSession opens "one isolated browser context, or the app on the device".
  • docs/core.mdx:207: saveState() is "Not supported on mobile devices." A desktop() session also throws: UNSUPPORTED_CAPABILITY engine desktop has no state capability, so a session on it cannot be saved (run on a Mac at this head).

Comment thread docs/reference/core.mdx
| --- | --- |
| `INVALID_ARGUMENT` | The first argument is not an engine, or an option or `app` key is unknown. |
| `INVALID_CONFIG` | The engine refuses the app: `web()` without `app.url`, `mobile()` without `app.bundleId` or `app.appPath`. |
| `INVALID_CONFIG` | The engine refuses the app: `web()` without `app.url`, `mobile()` or `desktop()` without `app.bundleId` or `app.appPath`, `desktop()` with `app.url`, `app.permissions`, or an `app.appPath` that isn't a `.app` bundle. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P3 · Non-blocking · INVALID_CONFIG covers only an appPath without the .app suffix

Optional. This does not block the merge.

This row says that INVALID_CONFIG is thrown for "an app.appPath that isn't a .app bundle". validateApp checks only the name suffix (packages/desktop/src/engine.ts:109). A path that ends in .app but has no Contents/Info.plist, for example an incomplete build, passes that check. Then init throws ENGINE_FAILURE (packages/desktop/src/surface.ts:300).

Run on the base and on this head: appPath: 'build/MyApp.apk' gives INVALID_CONFIG, and an empty build/Empty.app directory gives ENGINE_FAILURE. A program that handles the documented code does not catch the second case.

Comment thread docs/core.mdx
Comment on lines +190 to +193
The desktop engine is a prototype that runs on macOS 13 or later only. The
program that starts your script needs the Accessibility and Screen Recording
permissions: see [Desktop](/desktop#set-up). Core doesn't need the `e2e`
package; only the `e2e doctor` check on that page uses it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P3 · Non-blocking · The Note asks for more than a core script needs

Optional. This does not block the merge.

  • The Note says that the program needs both the Accessibility and the Screen Recording permissions. init refuses to start only when Accessibility is missing (packages/desktop/src/surface.ts:280). Filling fields, tapping, and reading windows work without Screen Recording, which is for screenshots. docs/desktop.mdx:40-41 says "Screen Recording, for screenshots", and this Note does not keep that qualifier.
  • The e2e doctor check on the linked page loads a runner config. In a core project without e2e.config.*, it stops with CONFIG_NOT_FOUND before it checks the desktop permissions (run on the base and on this head).

@kdy1
kdy1 added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit ddebc94 Nov 30, 2026
66 of 68 checks passed
@kdy1
kdy1 deleted the kacper/gtm-1179-core-desktop-docs branch November 30, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e team Opened by the e2e team Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:M Up to 99 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants