Skip to content

feat(core): swipe along a path relative to a node with locator.swipe (ENG-1488) - #2132

Draft
satya164 wants to merge 4 commits into
mainfrom
@satya164/element-scoped-pager-swipe
Draft

satya164 wants to merge 4 commits into
mainfrom
@satya164/element-scoped-pager-swipe

Conversation

@satya164

@satya164 satya164 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

locator.swipe() takes a path, { from, to, duration? }, with both points relative to the node:

await screen.getByRole('region', 'Photos').swipe({
  from: { x: '90%', y: '50%' },
  to: { x: '10%', y: '50%' },
  duration: 300,
});
  • A pixel coordinate is an offset from the node's top-left corner, the same corner as tap({ position }). A percentage is a share of the box boundingBox() reports, rounded to a pixel inside it.
  • The swipe is a pointer drag on the web and a touch swipe on a device. The direction form doesn't change.
Throws When
INVALID_ARGUMENT A mix of the two shapes, an unknown option, a duration that isn't a whole number from 16 through 10000 ms, a negative or non-finite coordinate, or a string that isn't a percentage from '0%' through '100%'
UNSUPPORTED_CAPABILITY An engine that doesn't list swipeTo in its pointer actions
ACTION_FAILED A node the browser engine can't scroll into view, or a gesture the engine rejects
LOCATOR_NOT_FOUND A node that resolves but doesn't get a visible box with non-zero width and height in time

Why

A direction swipe on the web is a wheel event, so a pager built on pointer events doesn't move. screen.swipe({ from, to }) drags, but uses screen coordinates, so tests had to read the node's box and add its offset to each point.

How it works

  1. A path on a locator goes to performWithin instead of perform (packages/core/src/locator/screen.ts:598). swipePath validates the points and the duration and builds the swipeTo action for locator.swipe and screen.swipe. Only a locator takes timeout (packages/core/src/locator/screen.ts:770).
  2. performWithin scrolls the node into view when the engine lists scrollIntoView, then waits for a visible box, as for tap({ position }) (packages/core/src/locator/engine.ts:601). For a swipe, it also waits for non-zero width and height, since every percentage on an empty box lands on one line.
  3. resolveBoxPoint turns both points into viewport points (packages/core/src/internal/geometry.ts:101). A pixel is added to the node's origin, the corner tap({ position }) uses. A percentage goes through resolveCoordinate on rect, the box boundingBox() reports, and is rounded once to a whole pixel inside it (packages/core/src/internal/geometry.ts:89). So '0%' and '100%' stay inside a box that starts between two pixels.
  4. dispatchAt sends the engine one swipeTo through its performAt (packages/core/src/locator/engine.ts:636). The web and mobile engines already declare swipeTo for screen.swipe, so neither engine changes.

Percentages use the box boundingBox() returns. In a frame, that box is clipped to the frame, and the web engine doesn't keep the node's full size. Keeping it would take a new SemanticNode field across the engine protocol. In the top-level document, the box can extend past the viewport.

When the app window's position on screen isn't known (such as a windowed iPad app), a direction swipe fails with ACTION_FAILED, while a path swipe still runs from the offset box. The reference page documents this. To refuse it, the harness would need a contract change so the engine knows the points came from a box.

Issue

Part of ENG-1434.

Verified

Ran it locally: yes

Web, testbed on Chromium. The pad reports where a swipe started and ended, relative to its own corner:

$ e2e run tests/pointer.e2e.ts
 ✓ |web| tests/pointer.e2e.ts > locator.swipe({ from, to }) takes points on the node box, in pixels or percentages
      Tests  9 passed (9)

{ from: { x: 10, y: 20 }, to: { x: '75%', y: '10%' }, duration: 200 } on the 320 × 200 pad reads swiped from 10,20 to 240,20. In Firefox 159 (web({ browser: 'firefox' })), the same file passes 8 of 9, and the new test reads the same swiped from 10,20 to 240,20. raw mouse input drags along the pad fails with swiped from 10,19 to 150,19 instead of 10,20 to 150,20. It fails the same way in Firefox on main at 634d0604, before the rebase, and it doesn't call locator.swipe.

Devices: an iOS 27.2 simulator (iPhone 18 Pro) and an API 36 emulator (Pixel 7, google_apis arm64), each created for this run, with the Release benchmark app built the way mobile.yml builds it. The mobile benchmark's pad test, a locator swipe follows a path relative to the node, swipes the pad from '80%' to '20%' and checks the reported start and end against the pad's width:

iOS      4 runs, 4 passed
Android  4 runs, 3 passed

The Android failure timed out in beforeEach, waiting for the scenario list after the first app install, before any swipe. It's the same failure as on the previous head, and it didn't come back in 3 more runs.

A throwaway test swiped the same pad and logged where the pad saw each swipe start and end, in points:

iOS, pad box {"x":16,"y":523,"width":370,"height":80}
{"from":{"x":300,"y":40},"to":{"x":100,"y":40}} -> swipe: 300,40 to 111,40
{"from":{"x":"90%","y":"25%"},"to":{"x":"10%","y":"75%"}} -> swipe: 333,20 to 53,58
{"from":{"x":"80%","y":20},"to":{"x":60,"y":"50%"},"duration":400} -> swipe: 296,20 to 65,40
{"from":{"x":"75%","y":"50%"},"to":{"x":"25%","y":"50%"},"duration":1000} -> swipe: 278,40 to 95,40

Android, pad box {"x":42,"y":1411,"width":996,"height":210}
{"from":{"x":300,"y":40},"to":{"x":100,"y":40}} -> swipe: 114,15 to 32,15
{"from":{"x":"90%","y":"25%"},"to":{"x":"10%","y":"75%"}} -> swipe: 341,20 to 14,63
{"from":{"x":"80%","y":20},"to":{"x":60,"y":"50%"},"duration":400} -> swipe: 304,8 to 17,41
{"from":{"x":"75%","y":"50%"},"to":{"x":"25%","y":"50%"},"duration":1000} -> swipe: 285,40 to 93,40
  • Start points land where requested. Pixel points are in the units boundingBox() reports on each platform.
  • A percentage lands at the same share of the pad on both platforms: '90%' starts at 333 of 370 points on iOS, and at 341 of 379 points on Android (the 996 × 210 box is 80 points tall).
  • The pad reported end positions on either side of the target. For the '90%' to '10%' swipe, iOS reported x=53 for a target of 37 points, and Android reported x=14 for a target of about 38.

The full mobile suites weren't run on this head. The pad tests above were.

pnpm bench:ab --suite testbed -- tests/pointer.e2e.ts:

bench-ab: 956f7417 (merge base with origin/main) vs d166ef6b

apps/testbed: e2e run --workers 1 tests/pointer.e2e.ts. 12 pairs in random order, resolved after 12 pairs. Threshold ±5% and 10 ms. darwin arm64, Apple M5 Pro x18, Node 24.22.1, load 20.2.

The suite's tests or config differ between base and head, so each side ran its own. A timing change can be the test change.

Behavior

These tests are left out of the timing rows below.

  • added tests/pointer.e2e.ts › locator.swipe({ from, to }) takes points on the node box, in pixels or percentages (web)

Timings

Every row but the process wall clock covers the 616 tests whose behavior matched.

Metric base median (IQR) head median (IQR) change (95% CI) verdict
wall (process) 3.62 s (3.45 s-4.04 s) 4.00 s (3.92 s-4.15 s) +12.9% (+5.8% to +16.3%) slower
suite (sum of attempts) 2.40 s (2.25 s-2.62 s) 2.33 s (2.29 s-2.41 s) -0.1% (-6.7% to +7.0%) same, under the floor
action (events) 1.11 s (1.09 s-1.16 s) 1.11 s (1.10 s-1.13 s) +0.3% (-3.2% to +2.1%) same, under the floor
step locator.tap 844 ms (840 ms-875 ms) 856 ms (841 ms-863 ms) -0.1% (-1.5% to +2.0%) same, under the floor
step app.open 634 ms (559 ms-672 ms) 586 ms (576 ms-614 ms) +0.5% (-12.3% to +10.1%) same, under the floor
step screen.swipe 148 ms (144 ms-163 ms) 146 ms (143 ms-151 ms) -0.7% (-9.0% to +5.0%) same, under the floor
step locator.click 45 ms (43 ms-55 ms) 42 ms (41 ms-50 ms) -4.5% (-21.4% to +13.2%) same, under the floor
step screen.tapAt 43 ms (39 ms-50 ms) 42 ms (39 ms-43 ms) -10.1% (-16.8% to +1.2%) same, under the floor
step expect.toHaveText 43 ms (38 ms-54 ms) 40 ms (38 ms-43 ms) +1.3% (-20.4% to +8.2%) same, under the floor
step locator.fill 40 ms (39 ms-44 ms) 39 ms (38 ms-44 ms) -1.3% (-10.8% to +5.5%) same, under the floor
step browser.mouse.move 20 ms (19 ms-23 ms) 20 ms (19 ms-22 ms) -7.5% (-13.2% to +8.2%) same, under the floor
step screen.doubleTapAt 12 ms (11 ms-13 ms) 11 ms (11 ms-13 ms) 0.0% (-12.3% to +8.3%) same
step browser.evaluate 5 ms (5 ms-6 ms) 5 ms (4 ms-6 ms) 0.0% (-10.6% to +20.8%) same
step expect.toHaveValue 3 ms (3 ms-3 ms) 3 ms (2 ms-3 ms) 0.0% (-33.3% to +50.0%) same
step browser.mouse.down 1 ms (1 ms-1 ms) 1 ms (1 ms-2 ms) 0.0% (0.0% to +100.0%) same
step browser.mouse.up 1 ms (1 ms-1 ms) 1 ms (1 ms-2 ms) 0.0% (0.0% to +100.0%) same
step browser.setViewport 0 ms (0 ms-1 ms) 1 ms (0 ms-1 ms) 0.0% (0.0% to 0.0%) same

Counters

Counter base head
attempts 8 9
events engine 12 14
events poll 9 10
steps 34 37
tests passed 8 9
Tests outside the threshold: 0 of 616

With 616 tests compared at 95%, about 30.8 could land outside by chance.

The wall-clock measurement includes the added test. None of the compared steps were marked slower.

Docs pages: no before and after screenshots. The docs site isn't in this repository, so it can't be rendered locally. pnpm docs:check compiles every changed page.

The video below is the Chromium run of the locator.swipe test.

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.
locator-swipe-chromium.webm

@satya164
satya164 marked this pull request as draft November 23, 2026 17:09
@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 760ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 560ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 200ms
🟢 tests/async-states.e2e.ts · 2 passed 7.1s
🟢 async states › reads the code off the transient toast and verifies it once the button enables 2.3s
🟢 async states › a wrong code is rejected after the toast has gone 4.8s
🟢 tests/canvas-only.e2e.ts · 2 passed 299ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 155ms
🟢 canvas only › a shape out of order paints the error and resets progress 144ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 436ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 251ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 185ms
🟢 tests/cart-totals.e2e.ts · 2 passed 417ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 239ms
🟢 cart totals › a quantity never drops below one 178ms
🟢 tests/checkout-review.e2e.ts · 1 passed 184ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 184ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 660ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 348ms
🟢 context menu trap › the decoy menu items refuse and keep the file 312ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.8s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 320ms
🟢 control inventory › check picks a radio the pick replaces with its summary 171ms
🟢 control inventory › a long press and a double click are told apart from a tap 1.0s
🟢 control inventory › the file menu opens on right-click only and Rename renames the file 289ms
🟢 control inventory › setInputFiles attaches files named from the project root 221ms
🟢 control inventory › the details view is left through the browser history 226ms
🟢 control inventory › scrollIntoView brings the footnote into view 223ms
🟢 control inventory › every exercise done shows the success message 1.3s
🟢 tests/css-content-ui.e2e.ts · 2 passed 410ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 230ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 180ms
🟢 tests/date-picker.e2e.ts · 2 passed 774ms
🟢 date picker › navigates three months ahead and books the required date 433ms
🟢 date picker › confirming without the exact date shows the error 341ms
🟢 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 742ms
🟢 div soup › a wrong code is rejected 328ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 414ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 696ms
🟢 drag and drop › an out-of-order item resets the dropzone 331ms
🟢 drag and drop › dropping Banana then Cherry passes 365ms
🟢 tests/file-round-trip.e2e.ts · 2 passed 391ms
🟢 file round trip › downloads the issued voucher and verifies the same file uploaded back 172ms
🟢 file round trip › rejects a file that is not the voucher, then accepts the issued one 219ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 296ms
🟢 filter deep link › filtering writes the query to the URL 157ms
🟢 filter deep link › opening a shared link restores the filter 139ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 621ms
🟢 gift card purchase › refuses to buy without an amount 165ms
🟢 gift card purchase › refuses a recipient without an at sign 228ms
🟢 gift card purchase › sends the gift card 228ms
🟢 tests/hover-menu.e2e.ts · 2 passed 512ms
🟢 hover menu › a decoy leaf is refused 265ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 247ms
🟢 tests/iframe-form.e2e.ts · 2 passed 612ms
🟢 iframe form › a wrong code is refused by the host page 283ms
🟢 iframe form › the code read from one frame applies through the other 329ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 602ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 127ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 233ms
🟢 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 739ms
🟢 kanban board › pointer drags move both cards into the goal layout 385ms
🟢 kanban board › a swipe along a path drags a card as well 132ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 222ms
🟢 tests/login-form.e2e.ts · 4 passed 825ms
🟢 login form › rejects a malformed email 217ms
🟢 login form › rejects a short password 209ms
🟢 login form › rejects an unknown account 182ms
🟢 login form › signs in and logs out 217ms
🟢 tests/lying-labels.e2e.ts · 4 passed 664ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 149ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 112ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 190ms
🟢 lying labels › visible text drives the payment through 213ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 522ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 170ms
🟢 native dialogs › dismissing the confirm cancels the order 164ms
🟢 native dialogs › a wrong gift code is rejected 188ms
🟢 tests/new-tab-flow.e2e.ts · 2 passed 479ms
🟢 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 218ms
🟢 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 5.2s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 314ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 394ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.4s
🟢 onboarding wizard › the preferences step flips the toggles the brief names and leaves the trap off 1.7s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 1.4s
🟢 tests/order-history.e2e.ts · 2 passed 1.4s
🟢 order history › overview and settings render their panels 229ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.2s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.4s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 471ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 162ms
🟢 otp auto-advance › a wrong code clears every box and starts over 790ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 725ms
🟢 continues only after the banner and the overlay are gone 725ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 584ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 291ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 293ms
🟢 tests/price-sorting.e2e.ts · 3 passed 461ms
🟢 price sorting › opens in the featured order with sale prices struck through 132ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 162ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 167ms
🟢 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 479ms
🟢 rich text editor › bolding exactly the required word passes the check 214ms
🟢 rich text editor › bold that spills into the previous word fails the check 265ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 601ms
🟢 saved addresses › adds an address and clears the form 194ms
🟢 saved addresses › ignores an add with an empty field 178ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 229ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 381ms
🟢 shadow DOM form › rejects a wrong access code 183ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 198ms
🟢 tests/smoke.e2e.ts · 1 passed 245ms
🟢 home lists the scenarios and opens one 245ms
🟢 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 180ms
🟢 accepts the terms once the button clears the sticky footer 180ms
🟢 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 280ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.3s

Tested by e2e 0.24.0 · 1m 7s · 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.6k tokens (94% cached) · $0.0053

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 734ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 278ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 945ms
🟢 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.4s
🟢 control inventory › back returns from the details view to the inventory 1 step 372ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 393ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 404ms
🟢 act signs in with the benchmark account 1 step 404ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 15.4s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 10.2s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.4s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 3.8s
🟢 tests-agent/scenarios.e2e.ts · 22 passed 22 steps · 17 calls 1m 19s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.7s
🟢 act completes lying-labels 1 step · 3 calls 4.4s
🟢 act completes iframe-form 1 step · 3 calls 4.1s
🟢 act completes infinite-scroll 1 step 3.3s
🟢 act completes virtualized-table 1 step 21.7s
🟢 act completes overlay-trap 1 step 1.0s
🟢 act completes sticky-chrome 1 step 967ms
🟢 act completes async-states 1 step · 3 calls 6.3s
🟢 act completes debounced-search 1 step 2.5s
🟢 act completes hover-menu 1 step 525ms
🟢 act completes drag-and-drop 1 step 483ms
🟢 act completes kanban-board 1 step 691ms
🟢 act completes context-menu-trap 1 step 2.7s
🟢 act completes stale-dom 1 step 499ms
🟢 act completes otp-auto-advance 1 step 741ms
🟢 act completes date-picker 1 step 844ms
🟢 act completes rich-text-editor 1 step 10.3s
🟢 act completes playbook-cleanup 1 step 676ms
🟢 act completes promo-storefront 1 step 1.4s
🟢 act completes new-tab-flow 1 step · 5 calls 8.9s
🟢 act completes gift-card-purchase 1 step 2.6s
🟢 act filters the list and the URL carries the filter 1 step 338ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 472ms
🟢 act adds an address with a run-unique label 1 step 472ms

Tested by e2e 0.24.0 · 1m 43s · 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 · 51 model calls · 389.7k tokens (85% cached) · $0.0234

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 51 calls 6m 5s
🟢 act completes Login Form 1 step 25.3s
🟢 act completes Infinite Scroll List 1 step 20.7s
🟢 act completes Modal Flow 1 step 10.1s
🟢 act completes Bottom Tabs 1 step 6.6s
🟢 act completes Text Input Variations 1 step 6.3s
🟢 act completes Broken Accessibility 2 steps · 5 calls 13.2s
🟢 act completes Vision Only 2 steps · 1 call 6.3s
🟢 act completes Gestures 1 step · 11 calls 25.7s
🟢 act completes Async States 1 step · 22 calls 44.8s
🟢 act completes Debounced Search 1 step 7.3s
🟢 act completes Huge Virtualized List 1 step 1m 51s
🟢 act completes Flattened Registration Form 2 steps · 1 call 7.9s
🟢 act completes Flattened Login 2 steps · 6 calls 14.6s
🟢 act completes Sticky Chrome Target 1 step 8.9s
🟢 act completes WebView Accessibility 1 step · 5 calls 14.7s
🟢 act completes Permission Prompt 1 step 6.3s
🟢 act completes Product Catalog 1 step 8.4s
🟢 act completes Error Recovery 1 step 8.5s
🟢 act completes Choice Controls 1 step 8.7s
🟢 act completes Sequential Onboarding 1 step 9.8s

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

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 63 passed, 1 skipped

All 64 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 25 passed, 1 skipped 3m 22s
🟢 control inventory › a label query resolves a labeled text field 13.0s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 15.3s
🟢 control inventory › a placeholder query and attribute reads find the field 6.5s
🟢 control inventory › a secure field takes a fill and denies value reads 8.7s
🟢 control inventory › press sends a character and Enter through the soft keyboard 10.1s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 11.1s
🟢 control inventory › toBeFocused follows the focus 9.9s
🟢 control inventory › a switch checks, unchecks, and reports its state 11.6s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 8.9s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 12.7s
🟢 control inventory › a radio group reports the checked option 8.8s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.8s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.2s
🟢 control inventory › a header answers its accessible name 4.3s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.5s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 7.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 8.5s
🟢 control inventory › tap({ count: 3 }) lands three presses 8.4s
🟢 control inventory › pointer verbs land at the point asked for 9.2s
🟢 control inventory › a locator swipe follows a path relative to the node 7.0s
🟢 control inventory › an ambiguous locator fails at once 5.9s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 11.9s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 214ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.2s
🟢 tests/device-fixture.e2e.ts · 14 passed 2m 19s
🟢 device fixture › setAppearance flips the color scheme the app reads 17.8s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 10.9s
🟢 device fixture › the clipboard reads back what was written 8.5s
🟢 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 10.0s
🟢 device fixture › closeApp leaves the next commands on the same device 15.2s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 7.7s
🟢 device fixture › openLink opens the scenario a deep link names 16.2s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 6.6s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 9.6s
🟢 device fixture › device.back pops the scenario 5.0s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 4.2s
🟢 device fixture › setLocation and clearLocation change what the app reads 10.1s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 9.6s
🟢 tests/device.e2e.ts · 6 passed 1m 13s
🟢 permissions all grants the microphone without a system dialog 13.3s
🟢 sequential onboarding echoes the exact values 25.5s
🟢 isKeyboardShown follows the keyboard up and through a dismissal 8.5s
🟢 a shake is sent without an error and leaves the screen readable 4.8s
🟢 onboarding rejects a malformed email before advancing 10.1s
🟢 dismissing the keyboard over choice controls leaves them as they were 11.1s
🟢 tests/flows-lists.e2e.ts · 7 passed 4m 0s
🟢 infinite scroll reaches the target item 32.8s
🟢 product catalog adds exactly two of the right variant 10.6s
🟢 gestures: long-press, then swipe left 9.0s
🟢 sticky chrome: accept below the fold, then continue 12.3s
🟢 async states: load, pull to refresh, claim through the toast 11.5s
🟢 huge virtualized list reaches row 512 2m 32s
🟢 web view coupon form applies the code shown on the page 12.1s
🟢 tests/flows.e2e.ts · 7 passed 1m 8s
🟢 text inputs unlock the submit button 12.0s
🟢 filled text inputs report their values 10.6s
🟢 modal flow confirms through the native alert 10.0s
🟢 bottom tabs act inside the last tab 7.3s
🟢 error recovery retries, then confirms the delete 9.3s
🟢 choice controls place the exact order 7.6s
🟢 debounced search selects the target once results arrive 11.4s
🟢 tests/login-form.e2e.ts · 3 passed 43.4s
🟢 login form › rejects a malformed email 12.4s
🟢 login form › rejects an unknown account 12.4s
🟢 login form › signs in and logs out 18.6s
🟢 tests/smoke.e2e.ts · 1 passed 7.9s
🟢 home lists the scenarios and opens one 7.9s

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

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 1 flaky, 20 passed, 1 skipped

25 agent steps · 12 replayed from cache · 58 model calls · 670.6k tokens (80% cached) · $0.0478

⚠️ 1 flaky test passed on a retry

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

ACTION_FAILED at step 4 of 4: agent.act "Complete this scenario as the screen instructs: complete the flow the screen describes until it says Access granted. The screen lists nothing useful; take a screenshot and work from it.", after 2m 19s and 24 model calls

agent.act failed: Entered the required code 7291, which is visible in the field and has enabled the green arrow. The screen has not yet shown “Access granted,” so the required outcome is unverified.

  • Turn 21: type_at({"x":129,"y":396,"value":"7291","replace":true}) → [type_at] type_at (129, 396) failed: POLICY_DENIED: agent-device cannot clear the focused field without a node; type into a listed field by id to replace its v…
  • Turn 22: tap({"target":"n4625"}) → [tap] Tapped #n4625.
  • Turn 23: type({"value":"7291"}) → [type] Typed into the focused field.
  • Screen: dev.e2e.benchmark / Broken Accessibility

Evidence: screenshot, log

All 22 tests in 1 file
Test Agent Time
⚠️ tests-agent/scenarios.e2e.ts · 1 flaky, 20 passed, 1 skipped 25 steps · 58 calls 8m 24s
🟢 act completes Login Form 1 step 45.4s
🟢 act completes Infinite Scroll List 1 step 41.5s
🟢 act completes Modal Flow 1 step 12.4s
🟢 act completes Bottom Tabs 1 step 10.7s
🟢 act completes Text Input Variations 1 step 16.0s
⚠️ act completes Broken Accessibility (1 failed attempt first) 2 steps · 7 calls 29.8s
🟢 act completes Vision Only 2 steps · 6 calls 25.2s
🟢 act completes Gestures 1 step · 7 calls 26.8s
🟢 act completes Async States 1 step · 7 calls 22.6s
🟢 act completes Debounced Search 1 step · 1 call 28.3s
🟢 act completes Flattened Registration Form 2 steps · 1 call 25.5s
🟢 act completes Flattened Login 2 steps · 10 calls 50.3s
🟢 act completes Sticky Chrome Target 1 step 13.4s
🟢 act completes WebView Accessibility 1 step 12.3s
🟢 act completes Permission Prompt 1 step 11.5s
🟢 act completes Photo Picker 1 step · 2 calls 27.5s
🟢 act completes Product Catalog 1 step 10.6s
🟢 act completes Error Recovery 1 step 10.1s
🟢 act completes Choice Controls 1 step · 5 calls 34.0s
🟢 act completes Stripe PaymentSheet 1 step · 12 calls 35.2s
🟢 act completes Apple Pay 1 step 14.9s
⏭️ 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 · 10m 51s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 64 passed, 1 skipped

All 65 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 26 passed, 1 skipped 2m 46s
🟢 control inventory › a label query resolves a labeled text field 20.7s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 10.7s
🟢 control inventory › a placeholder query and attribute reads find the field 5.4s
🟢 control inventory › a secure field takes a fill and denies value reads 6.2s
🟢 control inventory › press sends a character and Enter through the soft keyboard 7.4s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 7.7s
🟢 control inventory › toBeFocused follows the focus 7.5s
🟢 control inventory › a switch checks, unchecks, and reports its state 7.9s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.2s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 9.7s
🟢 control inventory › a tab role answers getByRole 3.6s
🟢 control inventory › a radio group reports the checked option 6.9s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.5s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.2s
🟢 control inventory › a header answers its accessible name 4.0s
🟢 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 4.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 7.0s
🟢 control inventory › a double tap lands inside the 300 ms window 6.3s
🟢 control inventory › tap({ count: 3 }) lands three presses 6.3s
🟢 control inventory › a locator swipe follows a path relative to the node 5.4s
🟢 control inventory › an ambiguous locator fails at once 4.7s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 6.6s
🟢 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 · 13 passed 1m 18s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 4.8s
🟢 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.7s
🟢 device fixture › closeApp then openApp relaunches on the home list 5.6s
🟢 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 5.0s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 3.7s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 7.1s
🟢 device fixture › device.back pops the scenario 4.0s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.3s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 9.7s
🟢 device fixture › setLocation and clearLocation change what the app reads 16.7s
🟢 tests/device.e2e.ts · 7 passed 48.1s
🟢 permission prompt › allowing the system dialog enables the microphone 5.5s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.6s
🟢 permissions all grants the microphone without a system dialog 6.4s
🟢 sequential onboarding echoes the exact values 9.5s
🟢 a shake is sent without an error and leaves the screen readable 4.4s
🟢 onboarding rejects a malformed email before advancing 5.1s
🟢 dismissing the keyboard over choice controls leaves them as they were 5.6s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 3s
🟢 infinite scroll reaches the target item 27.5s
🟢 product catalog adds exactly two of the right variant 8.3s
🟢 gestures: long-press, then swipe left 7.7s
🟢 gestures: double-tap completes the flow 9.1s
🟢 sticky chrome: accept below the fold, then continue 10.5s
🟢 async states: load, pull to refresh, claim through the toast 11.6s
🟢 huge virtualized list reaches row 512 1m 49s
🟢 tests/flows.e2e.ts · 7 passed 47.3s
🟢 text inputs unlock the submit button 5.6s
🟢 filled text inputs report their values 5.1s
🟢 modal flow confirms through the native alert 8.3s
🟢 bottom tabs act inside the last tab 6.1s
🟢 error recovery retries, then confirms the delete 8.2s
🟢 choice controls place the exact order 5.8s
🟢 debounced search selects the target once results arrive 8.2s
🟢 tests/login-form.e2e.ts · 3 passed 25.5s
🟢 login form › rejects a malformed email 6.9s
🟢 login form › rejects an unknown account 6.7s
🟢 login form › signs in and logs out 11.9s
🟢 tests/smoke.e2e.ts · 1 passed 5.0s
🟢 home lists the scenarios and opens one 5.0s

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

@satya164 satya164 changed the title feat(core): swipe a locator along a path between two points of the node feat(core): swipe a locator along a path between two points of the node (ENG-1488) Nov 24, 2026
@satya164
satya164 force-pushed the @satya164/element-scoped-pager-swipe branch from bd23ae1 to ba123d5 Compare November 25, 2026 11:12
…ty box

A path swipe waits for a box with a width and a height, and rounds a
percentage once to a pixel inside the box. Name locator.swipe wherever
performAt's callers and the iOS keyboard rule are listed, and tighten the
docs, type comments, and tests from review.
@satya164 satya164 changed the title feat(core): swipe a locator along a path between two points of the node (ENG-1488) feat(core): swipe along a path relative to a node with locator.swipe (ENG-1488) Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Microbenchmarks

For 416f5838a00c, 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 f26609eaffc2.

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,576 788,532 -0.006% ⚪ same (ranges overlap, change under 0.5%) 0.026% 0.024%
redact/fragments jitless 466,968,207 466,990,457 +0.005% ⚪ same (ranges overlap, change under 0.5%) 0.032% 0.024%
locate/catalog jitless 51,832,157 51,833,387 +0.002% ⚪ same (ranges overlap, change under 0.5%) 0.026% 0.015%
mobile/project-snapshot jitless 124,213,697 124,231,950 +0.015% ⚪ same (ranges overlap, change under 0.5%) 0.048% 0.082%
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.

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