Skip to content

feat(config): add locators.visible as the default visible for screen queries (ENG-1487) - #2116

Draft
satya164 wants to merge 5 commits into
mainfrom
@satya164/default-visible-locators
Draft

satya164 wants to merge 5 commits into
mainfrom
@satya164/default-visible-locators

Conversation

@satya164

@satya164 satya164 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • You can set locators at the top level or on each target to change the default visible of getByText, getByLabel, getByPlaceholder, getByDisplayValue, and getByTestId.
  • A target's locators.visible overrides the top-level value, and passing visible to a query overrides both. The default is false.
  • getByRole doesn't use the default.
export default {
  targets: [
    { engine: mobile({ platform: 'ios' }), app: { bundleId: 'com.example.app' } },
    { name: 'web', engine: web(), app: { url }, locators: { visible: false } },
  ],
  locators: { visible: true },
} satisfies E2EConfig;

On the iOS target, which inherits the top-level default:

await screen.getByText('Saved').tap();                       // hidden copies are skipped
await screen.getByText('Saved', { visible: false }).count(); // hidden copies are counted

Why

  • Role queries skip nodes hidden from the accessibility tree, but text and test id queries match hidden nodes too.
  • On native apps, previous screens stay mounted in the tree, so you end up passing { visible: true } to almost every query.

How it works

  1. locators is checked per target, using the target's visible, then the top-level value, then false (packages/core/src/config/resolve.ts:253, :702).
  2. The resolved value is stored on ResolvedTarget.locators (packages/core/src/config/targets.ts:46). It's included in the config digest only when visible is true (targets.ts:166). The top-level key is left out (resolve.ts:1046).
  3. The attempt's screen context gets the target's value (packages/core/src/run/fixtures.ts:152, :174).
  4. The five queries pass it to textQuery and testIdQuery (packages/core/src/locator/screen.ts:199), and visibility uses it when visible isn't set (packages/core/src/locator/expression.ts:41). roleQuery passes false (expression.ts:35), since a role query already skips nodes hidden from the accessibility tree on every engine.
  5. In an e2e mcp session, run_code's screen gets the same value (packages/e2e/src/session-tools/run-code.ts:248). locate and the test lines build their queries with one closure (packages/e2e/src/session-tools/catalog.ts:95, :201). When locate finds nothing under the default, its hint says hidden nodes were skipped (catalog.ts:251). Text, label, placeholder, and test id lines omit { visible: true } when locators.visible is true (packages/e2e/src/session-tools/test-lines.ts:578). Both catalog callers pass the target's value (packages/e2e/src/mcp/session.ts:488, packages/e2e/src/run/worker/held-test-tools.ts:504).

Error codes for invalid values:

Code When
INVALID_CONFIG locators (top level or on a target) isn't a plain object, has a key other than visible, or has a non-boolean visible

Verified

Ran it locally: yes, Chromium and Firefox.

A scratch config in the testbed set locators: { visible: true } on a Chromium and a Firefox target. The test runs on /controls, which has a hidden banner twin, and adds a hidden copy of the #coupon input:

await app.open('/controls');
await expect(screen.getByTestId('banner')).toHaveCount(1);
await screen.getByTestId('banner').tap();
await expect(screen.getByText('Sale')).toHaveText('Sale');
await expect(screen.getByTestId('banner', { visible: false })).toHaveCount(2);
// a hidden copy of #coupon (value SAVE10) is appended with browser.evaluate
await expect(screen.getByDisplayValue('SAVE10')).toHaveCount(1);
await expect(screen.getByDisplayValue('SAVE10', { visible: false })).toHaveCount(2);

node node_modules/e2e/dist/cli/bin.js run --config e2e.visible-verify.config.ts --video on:

      run 01a20d43-c624-78fa-b34e-bb5c71a5a0e5 · targets: chromium, firefox
 ✓ target "chromium" command at http://127.0.0.1:4371/ ready 90ms
   ✓ |chromium| tests-visible-verify/visible.e2e.ts > queries skip hidden twins without { visible: true } 499ms
   ✓ |firefox| tests-visible-verify/visible.e2e.ts > queries skip hidden twins without { visible: true } 1.48s
 Test Files  2 passed (2)

With locators: { visible: 'yes' }:

 ERROR  configuration error INVALID_CONFIG (config)
locators.visible must be a boolean, got "yes"
  • Firefox: locators-visible.test.ts and the run_code test in mcp-run-code.test.ts pass with their configs switched to web({ browser: 'firefox' }) (Firefox 159.0, checked with navigator.userAgent).
  • tests/integration/locators-visible.test.ts runs a config file through worker processes twice: once with a target that inherits visible: true, and once with a target that sets false. Both runs pass. Each also checks that a role query matches a zero-size checkbox unless the query sets visible: true.
  • tests/integration/mcp-run-code.test.ts runs run_code in a session whose config sets locators: { visible: true }.
  • iOS and Android: not run. The mobile engine reads the same visible predicate from the query (packages/mobile/src/locate.ts:131). This change doesn't touch it.
  • pnpm bench:ab: not run. An inherited visible: true gives the same locator predicate as an explicit { visible: true }.
  • Docs screenshots: not captured. The docs site isn't built from this repository, and pnpm docs:check covers the changed pages.

Videos from the Chromium and Firefox runs are attached below, in order.

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.
chromium-locators-visible.webm
firefox-visible.webm

@satya164
satya164 marked this pull request as draft November 23, 2026 15:32
@github-actions github-actions Bot added e2e team Opened by the e2e team size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 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 732ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 533ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 199ms
🟢 tests/async-states.e2e.ts · 2 passed 7.0s
🟢 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 277ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 136ms
🟢 canvas only › a shape out of order paints the error and resets progress 141ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 488ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 274ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 214ms
🟢 tests/cart-totals.e2e.ts · 2 passed 423ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 236ms
🟢 cart totals › a quantity never drops below one 187ms
🟢 tests/checkout-review.e2e.ts · 1 passed 193ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 193ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 665ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 318ms
🟢 context menu trap › the decoy menu items refuse and keep the file 347ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.6s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 326ms
🟢 control inventory › check picks a radio the pick replaces with its summary 198ms
🟢 control inventory › a long press and a double click are told apart from a tap 979ms
🟢 control inventory › the file menu opens on right-click only and Rename renames the file 253ms
🟢 control inventory › setInputFiles attaches files named from the project root 145ms
🟢 control inventory › the details view is left through the browser history 218ms
🟢 control inventory › scrollIntoView brings the footnote into view 207ms
🟢 control inventory › every exercise done shows the success message 1.3s
🟢 tests/css-content-ui.e2e.ts · 2 passed 395ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 222ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 173ms
🟢 tests/date-picker.e2e.ts · 2 passed 689ms
🟢 date picker › navigates three months ahead and books the required date 406ms
🟢 date picker › confirming without the exact date shows the error 283ms
🟢 tests/debounced-search.e2e.ts · 2 passed 2.8s
🟢 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.1s
🟢 one submit opens one confirm, even when double-clicked 1.1s
🟢 tests/div-soup.e2e.ts · 2 passed 793ms
🟢 div soup › a wrong code is rejected 361ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 432ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 710ms
🟢 drag and drop › an out-of-order item resets the dropzone 380ms
🟢 drag and drop › dropping Banana then Cherry passes 330ms
🟢 tests/file-round-trip.e2e.ts · 2 passed 377ms
🟢 file round trip › downloads the issued voucher and verifies the same file uploaded back 182ms
🟢 file round trip › rejects a file that is not the voucher, then accepts the issued one 195ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 236ms
🟢 filter deep link › filtering writes the query to the URL 128ms
🟢 filter deep link › opening a shared link restores the filter 108ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 610ms
🟢 gift card purchase › refuses to buy without an amount 181ms
🟢 gift card purchase › refuses a recipient without an at sign 201ms
🟢 gift card purchase › sends the gift card 228ms
🟢 tests/hover-menu.e2e.ts · 2 passed 516ms
🟢 hover menu › a decoy leaf is refused 226ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 290ms
🟢 tests/iframe-form.e2e.ts · 2 passed 610ms
🟢 iframe form › a wrong code is refused by the host page 321ms
🟢 iframe form › the code read from one frame applies through the other 289ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 546ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 119ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 185ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 242ms
🟢 tests/infinite-scroll.e2e.ts · 1 passed 2.8s
🟢 scrolls the feed until the Golden Ticket loads, then claims it 2.8s
🟢 tests/kanban-board.e2e.ts · 3 passed 757ms
🟢 kanban board › pointer drags move both cards into the goal layout 388ms
🟢 kanban board › a swipe along a path drags a card as well 165ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 204ms
🟢 tests/login-form.e2e.ts · 4 passed 878ms
🟢 login form › rejects a malformed email 213ms
🟢 login form › rejects a short password 202ms
🟢 login form › rejects an unknown account 213ms
🟢 login form › signs in and logs out 250ms
🟢 tests/lying-labels.e2e.ts · 4 passed 747ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 182ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 106ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 242ms
🟢 lying labels › visible text drives the payment through 217ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 499ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 186ms
🟢 native dialogs › dismissing the confirm cancels the order 144ms
🟢 native dialogs › a wrong gift code is rejected 169ms
🟢 tests/new-tab-flow.e2e.ts · 2 passed 460ms
🟢 new tab flow › reads the code in the tab the app opens and enters it back in the original tab 261ms
🟢 new tab flow › a tap that opens a tab leaves the screen on the original tab, and activate shows the new one 199ms
🟢 tests/newsletter-signup.e2e.ts · 1 passed 2.2s
🟢 subscribe renders no feedback and logs a TypeError (planted bug) 2.2s
🟢 tests/onboarding-wizard.e2e.ts · 5 passed 4.8s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 269ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 372ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.2s
🟢 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.6s
🟢 tests/order-history.e2e.ts · 2 passed 1.5s
🟢 order history › overview and settings render their panels 245ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.3s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.4s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 482ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 165ms
🟢 otp auto-advance › a wrong code clears every box and starts over 777ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 717ms
🟢 continues only after the banner and the overlay are gone 717ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 585ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 307ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 278ms
🟢 tests/price-sorting.e2e.ts · 3 passed 448ms
🟢 price sorting › opens in the featured order with sale prices struck through 121ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 148ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 179ms
🟢 tests/product-reviews.e2e.ts · 1 passed 1.1s
🟢 the running-shoe page lists coffee-grinder reviews (planted bug) 1.1s
🟢 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 559ms
🟢 rich text editor › bolding exactly the required word passes the check 292ms
🟢 rich text editor › bold that spills into the previous word fails the check 267ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 649ms
🟢 saved addresses › adds an address and clears the form 225ms
🟢 saved addresses › ignores an add with an empty field 191ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 233ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 417ms
🟢 shadow DOM form › rejects a wrong access code 202ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 215ms
🟢 tests/smoke.e2e.ts · 1 passed 281ms
🟢 home lists the scenarios and opens one 281ms
🟢 tests/stale-dom.e2e.ts · 1 passed 4.0s
🟢 taps the moving target three times across rebuilds of the list 4.0s
🟢 tests/sticky-chrome.e2e.ts · 1 passed 188ms
🟢 accepts the terms once the button clears the sticky footer 188ms
🟢 tests/virtualized-table.e2e.ts · 1 passed 14.8s
🟢 scrolls the windowed table to the Golden Row and claims it 14.8s
🟢 tests/wishlist.e2e.ts · 2 passed 1.6s
🟢 wishlist › saving toggles the button and the tab badge 279ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.3s

Tested by e2e 0.24.0 · 1m 6s · web · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 34 passed

35 agent steps · 26 replayed from cache · 25 model calls · 133.8k tokens (94% cached) · $0.0055

All 34 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 7 passed 7 steps 7.6s
🟢 control inventory › check sets the checkbox and the radio 1 step 719ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 262ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 913ms
🟢 control inventory › a right-click opens the file menu and Rename renames the file 1 step 2.6s
🟢 control inventory › upload attaches the named project files 1 step 2.5s
🟢 control inventory › back returns from the details view to the inventory 1 step 293ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 372ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 396ms
🟢 act signs in with the benchmark account 1 step 396ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 10.5s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 5.0s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.3s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 4.2s
🟢 tests-agent/scenarios.e2e.ts · 22 passed 22 steps · 17 calls 1m 14s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.7s
🟢 act completes lying-labels 1 step · 3 calls 4.1s
🟢 act completes iframe-form 1 step · 3 calls 3.8s
🟢 act completes infinite-scroll 1 step 3.4s
🟢 act completes virtualized-table 1 step 18.0s
🟢 act completes overlay-trap 1 step 874ms
🟢 act completes sticky-chrome 1 step 946ms
🟢 act completes async-states 1 step · 3 calls 6.4s
🟢 act completes debounced-search 1 step 2.3s
🟢 act completes hover-menu 1 step 498ms
🟢 act completes drag-and-drop 1 step 473ms
🟢 act completes kanban-board 1 step 645ms
🟢 act completes context-menu-trap 1 step 2.7s
🟢 act completes stale-dom 1 step 511ms
🟢 act completes otp-auto-advance 1 step 716ms
🟢 act completes date-picker 1 step 832ms
🟢 act completes rich-text-editor 1 step 10.1s
🟢 act completes playbook-cleanup 1 step 600ms
🟢 act completes promo-storefront 1 step 2.3s
🟢 act completes new-tab-flow 1 step · 5 calls 8.2s
🟢 act completes gift-card-purchase 1 step 2.4s
🟢 act filters the list and the URL carries the filter 1 step 209ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 277ms
🟢 act adds an address with a run-unique label 1 step 277ms

Tested by e2e 0.24.0 · 1m 33s · web · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 36 model calls · 216.2k tokens (88% cached) · $0.0117

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 36 calls 5m 44s
🟢 act completes Login Form 1 step 25.2s
🟢 act completes Infinite Scroll List 1 step 22.2s
🟢 act completes Modal Flow 1 step 11.2s
🟢 act completes Bottom Tabs 1 step 6.9s
🟢 act completes Text Input Variations 1 step 7.3s
🟢 act completes Broken Accessibility 2 steps · 5 calls 12.9s
🟢 act completes Vision Only 2 steps · 1 call 6.4s
🟢 act completes Gestures 1 step · 7 calls 18.1s
🟢 act completes Async States 1 step · 11 calls 21.8s
🟢 act completes Debounced Search 1 step 6.9s
🟢 act completes Huge Virtualized List 1 step 1m 56s
🟢 act completes Flattened Registration Form 2 steps · 1 call 8.5s
🟢 act completes Flattened Login 2 steps · 7 calls 16.1s
🟢 act completes Sticky Chrome Target 1 step 8.7s
🟢 act completes WebView Accessibility 1 step · 4 calls 13.2s
🟢 act completes Permission Prompt 1 step 6.2s
🟢 act completes Product Catalog 1 step 8.3s
🟢 act completes Error Recovery 1 step 8.8s
🟢 act completes Choice Controls 1 step 8.7s
🟢 act completes Sequential Onboarding 1 step 9.9s

Tested by e2e 0.24.0 · 5m 45s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 62 passed, 1 skipped

All 63 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 3m 5s
🟢 control inventory › a label query resolves a labeled text field 12.7s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 14.7s
🟢 control inventory › a placeholder query and attribute reads find the field 4.9s
🟢 control inventory › a secure field takes a fill and denies value reads 7.4s
🟢 control inventory › press sends a character and Enter through the soft keyboard 9.1s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 9.4s
🟢 control inventory › toBeFocused follows the focus 8.9s
🟢 control inventory › a switch checks, unchecks, and reports its state 9.1s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 8.3s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 12.2s
🟢 control inventory › a radio group reports the checked option 8.8s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.3s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.3s
🟢 control inventory › a header answers its accessible name 5.1s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 7.4s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 7.9s
⏭️ 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.4s
🟢 control inventory › tap({ count: 3 }) lands three presses 8.2s
🟢 control inventory › pointer verbs land at the point asked for 9.0s
🟢 control inventory › an ambiguous locator fails at once 5.6s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 12.0s
🟢 refusals › verbs a device never declares are refused before the engine 5ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 334ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 14 passed 2m 0s
🟢 device fixture › setAppearance flips the color scheme the app reads 15.2s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 9.6s
🟢 device fixture › the clipboard reads back what was written 5.5s
🟢 device fixture › home leaves the app, openApp brings it back where it was 6.4s
🟢 device fixture › closeApp then openApp relaunches on the home list 8.1s
🟢 device fixture › closeApp leaves the next commands on the same device 13.0s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 5.8s
🟢 device fixture › openLink opens the scenario a deep link names 12.9s
🟢 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.1s
🟢 device fixture › device.back pops the scenario 4.9s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 4.2s
🟢 device fixture › setLocation and clearLocation change what the app reads 9.6s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 10.0s
🟢 tests/device.e2e.ts · 6 passed 1m 15s
🟢 permissions all grants the microphone without a system dialog 15.1s
🟢 sequential onboarding echoes the exact values 25.4s
🟢 isKeyboardShown follows the keyboard up and through a dismissal 7.6s
🟢 a shake is sent without an error and leaves the screen readable 4.8s
🟢 onboarding rejects a malformed email before advancing 10.0s
🟢 dismissing the keyboard over choice controls leaves them as they were 12.4s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 58s
🟢 infinite scroll reaches the target item 35.4s
🟢 product catalog adds exactly two of the right variant 10.0s
🟢 gestures: long-press, then swipe left 8.6s
🟢 sticky chrome: accept below the fold, then continue 12.7s
🟢 async states: load, pull to refresh, claim through the toast 11.8s
🟢 huge virtualized list reaches row 512 2m 28s
🟢 web view coupon form applies the code shown on the page 11.5s
🟢 tests/flows.e2e.ts · 7 passed 1m 10s
🟢 text inputs unlock the submit button 12.8s
🟢 filled text inputs report their values 10.6s
🟢 modal flow confirms through the native alert 9.7s
🟢 bottom tabs act inside the last tab 7.4s
🟢 error recovery retries, then confirms the delete 9.5s
🟢 choice controls place the exact order 7.8s
🟢 debounced search selects the target once results arrive 12.0s
🟢 tests/login-form.e2e.ts · 3 passed 44.7s
🟢 login form › rejects a malformed email 12.7s
🟢 login form › rejects an unknown account 12.6s
🟢 login form › signs in and logs out 19.5s
🟢 tests/smoke.e2e.ts · 1 passed 7.3s
🟢 home lists the scenarios and opens one 7.3s

Tested by e2e 0.24.0 · 7m 5s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 63 passed, 1 skipped

All 64 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 25 passed, 1 skipped 2m 47s
🟢 control inventory › a label query resolves a labeled text field 21.9s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 11.6s
🟢 control inventory › a placeholder query and attribute reads find the field 6.7s
🟢 control inventory › a secure field takes a fill and denies value reads 6.6s
🟢 control inventory › press sends a character and Enter through the soft keyboard 8.5s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.4s
🟢 control inventory › toBeFocused follows the focus 8.5s
🟢 control inventory › a switch checks, unchecks, and reports its state 8.3s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.3s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.4s
🟢 control inventory › a tab role answers getByRole 3.3s
🟢 control inventory › a radio group reports the checked option 7.2s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.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 3.7s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.4s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 5.0s
⏭️ 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.3s
🟢 control inventory › an ambiguous locator fails at once 4.6s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 6.3s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 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 · 13 passed 1m 21s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 4.7s
🟢 device fixture › home leaves the app, openApp brings it back where it was 4.5s
🟢 device fixture › foregroundApp sees the home screen after home() 3.4s
🟢 device fixture › closeApp then openApp relaunches on the home list 6.3s
🟢 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 4.0s
🟢 device fixture › openLink opens the scenario a deep link names 4.3s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 3.4s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 6.8s
🟢 device fixture › device.back pops the scenario 3.9s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.1s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 14.3s
🟢 device fixture › setLocation and clearLocation change what the app reads 16.6s
🟢 tests/device.e2e.ts · 7 passed 47.1s
🟢 permission prompt › allowing the system dialog enables the microphone 5.4s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.2s
🟢 permissions all grants the microphone without a system dialog 5.9s
🟢 sequential onboarding echoes the exact values 9.1s
🟢 a shake is sent without an error and leaves the screen readable 4.2s
🟢 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 4s
🟢 infinite scroll reaches the target item 27.3s
🟢 product catalog adds exactly two of the right variant 7.9s
🟢 gestures: long-press, then swipe left 7.5s
🟢 gestures: double-tap completes the flow 9.3s
🟢 sticky chrome: accept below the fold, then continue 10.5s
🟢 async states: load, pull to refresh, claim through the toast 12.3s
🟢 huge virtualized list reaches row 512 1m 49s
🟢 tests/flows.e2e.ts · 7 passed 47.3s
🟢 text inputs unlock the submit button 6.5s
🟢 filled text inputs report their values 5.5s
🟢 modal flow confirms through the native alert 8.2s
🟢 bottom tabs act inside the last tab 6.6s
🟢 error recovery retries, then confirms the delete 7.9s
🟢 choice controls place the exact order 4.9s
🟢 debounced search selects the target once results arrive 7.9s
🟢 tests/login-form.e2e.ts · 3 passed 27.3s
🟢 login form › rejects a malformed email 7.4s
🟢 login form › rejects an unknown account 7.2s
🟢 login form › signs in and logs out 12.6s
🟢 tests/smoke.e2e.ts · 1 passed 5.7s
🟢 home lists the scenarios and opens one 5.7s

Tested by e2e 0.24.0 · 9m 21s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 21 passed, 1 skipped

25 agent steps · 12 replayed from cache · 56 model calls · 391.6k tokens (84% cached) · $0.0241

All 22 tests in 1 file
Test Agent Time
⏭️ tests-agent/scenarios.e2e.ts · 21 passed, 1 skipped 25 steps · 56 calls 8m 22s
🟢 act completes Login Form 1 step 43.6s
🟢 act completes Infinite Scroll List 1 step 39.0s
🟢 act completes Modal Flow 1 step 11.9s
🟢 act completes Bottom Tabs 1 step 8.9s
🟢 act completes Text Input Variations 1 step 13.5s
🟢 act completes Broken Accessibility 2 steps · 6 calls 30.4s
🟢 act completes Vision Only 2 steps · 6 calls 38.4s
🟢 act completes Gestures 1 step · 5 calls 18.6s
🟢 act completes Async States 1 step · 10 calls 28.7s
🟢 act completes Debounced Search 1 step · 1 call 28.6s
🟢 act completes Flattened Registration Form 2 steps · 1 call 25.0s
🟢 act completes Flattened Login 2 steps · 10 calls 49.8s
🟢 act completes Sticky Chrome Target 1 step 13.4s
🟢 act completes WebView Accessibility 1 step 12.6s
🟢 act completes Permission Prompt 1 step 12.1s
🟢 act completes Photo Picker 1 step · 2 calls 29.0s
🟢 act completes Product Catalog 1 step 10.6s
🟢 act completes Error Recovery 1 step 9.7s
🟢 act completes Choice Controls 1 step · 6 calls 36.7s
🟢 act completes Stripe PaymentSheet 1 step · 9 calls 30.7s
🟢 act completes Apple Pay 1 step 11.2s
⏭️ 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.24.0 · 8m 24s · ios-simulator · run artifacts

@satya164
satya164 force-pushed the @satya164/default-visible-locators branch 2 times, most recently from bcdeb58 to ca54b9b Compare November 24, 2026 10:25
@satya164 satya164 changed the title feat(config): set the default visible option of screen queries with locators feat(config): set the default visible option of screen queries with locators (ENG-1487) Nov 24, 2026
@satya164
satya164 force-pushed the @satya164/default-visible-locators branch from 5e12b4b to 734d7e9 Compare November 25, 2026 10:30
@satya164 satya164 changed the title feat(config): set the default visible option of screen queries with locators (ENG-1487) feat(config): add locators.visible, the default visible option of screen queries (ENG-1487) Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Microbenchmarks

For 7086c6c495ee, the pull request's head, measured merged into its base.

⚪ No case changed by 0.5% or more.

Repeatability: two builds of the head agree in every case, 10 trials each.

Base c3f2bf37bb29, head e034766873ef.

A direction is reported only when the trial ranges of base and head do not overlap and the change is at least 0.5%.

Case Mode Base Head Change Direction Base spread Head spread
redact/screen-text jitless 788,461 788,534 +0.009% ⚪ same (ranges overlap, change under 0.5%) 0.012% 0.042%
redact/fragments jitless 467,010,138 466,981,791 -0.006% ⚪ same (ranges overlap, change under 0.5%) 0.030% 0.013%
locate/catalog jitless 51,834,626 51,829,577 -0.01% ⚪ same (ranges overlap, change under 0.5%) 0.018% 0.031%
mobile/project-snapshot jitless 124,289,901 124,223,492 -0.053% ⚪ same (ranges overlap, change under 0.5%) 0.098% 0.060%
How this is measured

Instructions per iteration: the difference between a run of N and of 3N iterations, divided by 2N, so startup, loading, warmup, and compilation cancel. 5 trial(s) per case and checkout. Lower is better.

Machine: linux x64, AMD EPYC, Node v26.13.1, valgrind-3.22.0, ASLR off.

  • jitless: node --jitless --predictable --single-threaded --predictable-gc-schedule --random-seed=42 --hash-seed=42 --expose-gc --v8-pool-size=0 --no-memory-protection-keys

Workflow run: each job's summary, and result.json in its artifact.

@satya164 satya164 changed the title feat(config): add locators.visible, the default visible option of screen queries (ENG-1487) feat(config): add locators.visible to set the default visible option of screen queries (ENG-1487) Nov 25, 2026
@satya164 satya164 changed the title feat(config): add locators.visible to set the default visible option of screen queries (ENG-1487) feat(config): add locators.visible as the default visible for screen queries (ENG-1487) Nov 25, 2026

This branch has not been deployed

No deployments
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 size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant