Skip to content

feat(expect): add toBeInViewport - #2112

Closed
satya164 wants to merge 3 commits into
mainfrom
@satya164/viewport-visibility-matcher
Closed

satya164 wants to merge 3 commits into
mainfrom
@satya164/viewport-visibility-matcher

Conversation

@satya164

@satya164 satya164 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Adds expect(locator).toBeInViewport({ ratio?, timeout? }). It's Playwright's matcher for checking that a node is inside the viewport. toBeVisible() passes for an off-screen pager page or content scrolled out of view, so tests had to poll boundingBox() against the viewport size instead.

Replaces #2111. GitHub closed it when its branch was renamed.

await expect(screen.getByText('Step 2 of 3')).toBeInViewport();
await expect(screen.getByTestId('banner')).toBeInViewport({ ratio: 0.5 }); // default: 0, any part
await expect(screen.getByText('Step 1 of 3')).not.toBeInViewport();       // hidden, absent, or off screen
  • The node's rect is compared with the viewport size of a screen observation (session.observe), so web, iOS, and Android don't need an engine change. The screen is observed only when the node is shown and has a box (sample() in packages/e2e/src/expect/async.ts).
  • The ratio is the share of the box inside the viewport (boxShareInViewport in packages/core/src/internal/geometry.ts). The check passes when the share is above 0 and at least ratio, with Playwright's 1e-9 tolerance.
  • The negated form passes for:
    • a hidden node
    • zero matches (a missing frame counts as zero)
    • a node that doesn't have a box (a web node scrolled fully out of its iframe doesn't have one)
    • a box outside the viewport
  • One difference from Playwright is documented in reference/expect.mdx and the Playwright guide. Playwright uses an IntersectionObserver, so a part clipped off by a scrolling container counts as outside. Here, the box is checked against the viewport only, so a pager page inside a narrower overflow container can still read as in view. When a box is already cut to its container (on the web for iframes, on Android for list rows), the cut-off part doesn't count.
  • Docs:
    • reference/expect.mdx has an entry and the type.
    • The boundingBox() workaround is removed from the Playwright guide.
    • The Detox and Maestro guides map their visibility percentages to ratio.
    • The matcher is listed in skills/e2e and accepted by run_code.

Error codes the new API can throw. None of them is new, so reference/errors.mdx doesn't change:

Code When
INVALID_ARGUMENT ratio isn't a number from 0 to 1 (null, NaN, a string), or an option isn't supported. It's thrown before any read
ASSERTION_FAILED The timeout runs out. The message shows the observed ratio, hidden, no box, or no node
LOCATOR_AMBIGUOUS The locator matches more than one node
Engine errors (ENGINE_FAILURE, OPERATION_TIMEOUT, ...) A locate, read, or observe call fails, the same as for the other locator matchers

Verified

Ran it locally: yes, on Chromium. Firefox: no, see below.

  • Testbed with the built CLI, a scratch test on /scroll (not committed): node node_modules/e2e/dist/cli/bin.js run tests/zz-in-viewport.e2e.ts --video. Before a wheel scroll, toBeInViewport({ ratio: 1 }) passes on the heading. After the scroll:

    • toBeVisible() still passes on the heading.
    • not.toBeInViewport() passes on the heading.
    • The rows list is in the viewport.

    The deliberate failure prints:

    ASSERTION_FAILED: expect.toBeInViewport failed
    locator: getByRole("heading", name: "Scroll")
    expected: in viewport
    observed: viewport ratio 0 (match count 1)
    
  • packages/e2e/tests/integration/web-in-viewport.test.ts runs a suite on the web engine in Chromium. It covers:

    • a full-width pager whose second page is visible but not in the viewport until "Next page" is tapped
    • content below the fold, before and after scrollIntoView
    • a box half past the bottom edge (passes ratio: 0.5, fails 0.6 with observed: viewport ratio 0.5)
    • the negated form on a hidden and an absent node
  • packages/e2e/tests/unit/expect-in-viewport.test.ts covers:

    • full, partial, corner, below, and edge-touching boxes
    • hidden, absent, and boxless nodes
    • the float tolerance
    • option validation
  • Firefox: not run. Playwright's Firefox (firefox-1572) doesn't start on this Mac, even from a bare firefox.launch() outside the runner:

    • headless and headed: Could not find profile folder
    • headed only: sandbox_extension_issue_file_to_process ... Operation not permitted

    The matcher doesn't have any browser-specific code. On every browser, rect and the viewport come from the same in-page reader in the web engine.

  • iOS and Android: not run on a device. The matcher doesn't need an engine change. On Android, a list row's bounds are already cut to the list, as a reviewer found in the golden snapshots in packages/mobile/tests/fixtures/snapshots/android/. That limit is in the docs, but it isn't confirmed on a device.

🤖 Generated with Claude Code

satya164 and others added 3 commits November 23, 2026 16:10
expect(locator).toBeInViewport({ ratio?, timeout? }) waits for the one
match to be shown with at least `ratio` of its box inside the viewport of
a screen observation, so it works on every engine that reports node
boxes. Negated, it passes for a hidden, absent, or off-screen match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read a shown node without a box as outside the viewport, allow
Playwright's 1e-9 tolerance on the ratio, refuse `ratio: null`, print the
unrounded ratio, and document where engines cut a box to its container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Group the clipping limits in the reference entry, drop semicolons from
the JSDoc and changeset, link the Detox row to the reference instead of
repeating the Android limit, and phrase the migration rows as steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@satya164
satya164 marked this pull request as draft November 23, 2026 15:19
@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

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 716ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 549ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 167ms
🟢 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 274ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 148ms
🟢 canvas only › a shape out of order paints the error and resets progress 126ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 378ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 231ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 147ms
🟢 tests/cart-totals.e2e.ts · 2 passed 375ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 230ms
🟢 cart totals › a quantity never drops below one 145ms
🟢 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 609ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 331ms
🟢 context menu trap › the decoy menu items refuse and keep the file 278ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.6s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 282ms
🟢 control inventory › check picks a radio the pick replaces with its summary 196ms
🟢 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 253ms
🟢 control inventory › setInputFiles attaches files named from the project root 153ms
🟢 control inventory › the details view is left through the browser history 196ms
🟢 control inventory › scrollIntoView brings the footnote into view 197ms
🟢 control inventory › every exercise done shows the success message 1.3s
🟢 tests/css-content-ui.e2e.ts · 2 passed 428ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 242ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 186ms
🟢 tests/date-picker.e2e.ts · 2 passed 743ms
🟢 date picker › navigates three months ahead and books the required date 427ms
🟢 date picker › confirming without the exact date shows the error 316ms
🟢 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 722ms
🟢 div soup › a wrong code is rejected 341ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 381ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 665ms
🟢 drag and drop › an out-of-order item resets the dropzone 334ms
🟢 drag and drop › dropping Banana then Cherry passes 331ms
🟢 tests/file-round-trip.e2e.ts · 2 passed 369ms
🟢 file round trip › downloads the issued voucher and verifies the same file uploaded back 175ms
🟢 file round trip › rejects a file that is not the voucher, then accepts the issued one 194ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 248ms
🟢 filter deep link › filtering writes the query to the URL 134ms
🟢 filter deep link › opening a shared link restores the filter 114ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 611ms
🟢 gift card purchase › refuses to buy without an amount 179ms
🟢 gift card purchase › refuses a recipient without an at sign 198ms
🟢 gift card purchase › sends the gift card 234ms
🟢 tests/hover-menu.e2e.ts · 2 passed 443ms
🟢 hover menu › a decoy leaf is refused 194ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 249ms
🟢 tests/iframe-form.e2e.ts · 2 passed 563ms
🟢 iframe form › a wrong code is refused by the host page 282ms
🟢 iframe form › the code read from one frame applies through the other 281ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 505ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 115ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 170ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 220ms
🟢 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 733ms
🟢 kanban board › pointer drags move both cards into the goal layout 385ms
🟢 kanban board › a swipe along a path drags a card as well 147ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 201ms
🟢 tests/login-form.e2e.ts · 4 passed 781ms
🟢 login form › rejects a malformed email 180ms
🟢 login form › rejects a short password 184ms
🟢 login form › rejects an unknown account 183ms
🟢 login form › signs in and logs out 234ms
🟢 tests/lying-labels.e2e.ts · 4 passed 746ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 166ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 109ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 240ms
🟢 lying labels › visible text drives the payment through 231ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 449ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 150ms
🟢 native dialogs › dismissing the confirm cancels the order 149ms
🟢 native dialogs › a wrong gift code is rejected 150ms
🟢 tests/new-tab-flow.e2e.ts · 2 passed 481ms
🟢 new tab flow › reads the code in the tab the app opens and enters it back in the original tab 262ms
🟢 new tab flow › a tap that opens a tab leaves the screen on the original tab, and activate shows the new one 219ms
🟢 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 299ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 392ms
🟢 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.5s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 1.6s
🟢 tests/order-history.e2e.ts · 2 passed 1.4s
🟢 order history › overview and settings render their panels 228ms
🟢 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 486ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 157ms
🟢 otp auto-advance › a wrong code clears every box and starts over 777ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 738ms
🟢 continues only after the banner and the overlay are gone 738ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 546ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 299ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 247ms
🟢 tests/price-sorting.e2e.ts · 3 passed 377ms
🟢 price sorting › opens in the featured order with sale prices struck through 108ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 130ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 139ms
🟢 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 473ms
🟢 rich text editor › bolding exactly the required word passes the check 256ms
🟢 rich text editor › bold that spills into the previous word fails the check 217ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 597ms
🟢 saved addresses › adds an address and clears the form 204ms
🟢 saved addresses › ignores an add with an empty field 177ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 216ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 399ms
🟢 shadow DOM form › rejects a wrong access code 199ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 200ms
🟢 tests/smoke.e2e.ts · 1 passed 276ms
🟢 home lists the scenarios and opens one 276ms
🟢 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 183ms
🟢 accepts the terms once the button clears the sticky footer 183ms
🟢 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 1.5s
🟢 wishlist › saving toggles the button and the tab badge 258ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.3s

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

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 34 passed

35 agent steps · 26 replayed from cache · 26 model calls · 142.6k tokens (93% cached) · $0.0061

All 34 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 7 passed 7 steps 8.0s
🟢 control inventory › check sets the checkbox and the radio 1 step 914ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 347ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 1.0s
🟢 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 333ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 404ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 431ms
🟢 act signs in with the benchmark account 1 step 431ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 11.2s
🟢 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.7s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 4.3s
🟢 tests-agent/scenarios.e2e.ts · 22 passed 22 steps · 18 calls 1m 17s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.7s
🟢 act completes lying-labels 1 step · 4 calls 6.8s
🟢 act completes iframe-form 1 step · 3 calls 3.5s
🟢 act completes infinite-scroll 1 step 3.4s
🟢 act completes virtualized-table 1 step 18.1s
🟢 act completes overlay-trap 1 step 898ms
🟢 act completes sticky-chrome 1 step 873ms
🟢 act completes async-states 1 step · 3 calls 7.1s
🟢 act completes debounced-search 1 step 2.3s
🟢 act completes hover-menu 1 step 465ms
🟢 act completes drag-and-drop 1 step 484ms
🟢 act completes kanban-board 1 step 601ms
🟢 act completes context-menu-trap 1 step 2.7s
🟢 act completes stale-dom 1 step 461ms
🟢 act completes otp-auto-advance 1 step 722ms
🟢 act completes date-picker 1 step 842ms
🟢 act completes rich-text-editor 1 step 10.1s
🟢 act completes playbook-cleanup 1 step 571ms
🟢 act completes promo-storefront 1 step 2.3s
🟢 act completes new-tab-flow 1 step · 5 calls 8.3s
🟢 act completes gift-card-purchase 1 step 2.5s
🟢 act filters the list and the URL carries the filter 1 step 228ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 308ms
🟢 act adds an address with a run-unique label 1 step 308ms

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

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 49 model calls · 370.1k tokens (85% cached) · $0.0225

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 49 calls 5m 57s
🟢 act completes Login Form 1 step 19.9s
🟢 act completes Infinite Scroll List 1 step 17.8s
🟢 act completes Modal Flow 1 step 9.8s
🟢 act completes Bottom Tabs 1 step 6.8s
🟢 act completes Text Input Variations 1 step 5.8s
🟢 act completes Broken Accessibility 2 steps · 5 calls 13.1s
🟢 act completes Vision Only 2 steps · 1 call 6.0s
🟢 act completes Gestures 1 step · 10 calls 26.3s
🟢 act completes Async States 1 step · 21 calls 45.9s
🟢 act completes Debounced Search 1 step 6.5s
🟢 act completes Huge Virtualized List 1 step 1m 49s
🟢 act completes Flattened Registration Form 2 steps · 1 call 7.7s
🟢 act completes Flattened Login 2 steps · 7 calls 16.6s
🟢 act completes Sticky Chrome Target 1 step 9.1s
🟢 act completes WebView Accessibility 1 step · 4 calls 14.4s
🟢 act completes Permission Prompt 1 step 6.2s
🟢 act completes Product Catalog 1 step 8.5s
🟢 act completes Error Recovery 1 step 9.0s
🟢 act completes Choice Controls 1 step 8.4s
🟢 act completes Sequential Onboarding 1 step 9.7s

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

@KrzysztofMoch

Copy link
Copy Markdown
Member

I am closing this one in favor of #2011

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 59 passed, 1 skipped

All 60 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 23 passed, 1 skipped 3m 9s
🟢 control inventory › a label query resolves a labeled text field 11.7s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 18.0s
🟢 control inventory › a placeholder query and attribute reads find the field 5.2s
🟢 control inventory › a secure field takes a fill and denies value reads 9.1s
🟢 control inventory › press sends a character and Enter through the soft keyboard 10.2s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 10.2s
🟢 control inventory › toBeFocused follows the focus 9.1s
🟢 control inventory › a switch checks, unchecks, and reports its state 10.1s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 8.6s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 13.1s
🟢 control inventory › a radio group reports the checked option 9.8s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 9.2s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.9s
🟢 control inventory › a header answers its accessible name 4.7s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.6s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 6.7s
⏭️ 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 › pointer verbs land at the point asked for 10.2s
🟢 control inventory › an ambiguous locator fails at once 6.2s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 12.4s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 257ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 14 passed 2m 22s
🟢 device fixture › setAppearance flips the color scheme the app reads 11.8s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 14.7s
🟢 device fixture › the clipboard reads back what was written 11.2s
🟢 device fixture › home leaves the app, openApp brings it back where it was 6.9s
🟢 device fixture › closeApp then openApp relaunches on the home list 10.2s
🟢 device fixture › closeApp leaves the next commands on the same device 14.6s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 6.4s
🟢 device fixture › openLink opens the scenario a deep link names 14.1s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 6.9s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 10.6s
🟢 device fixture › device.back pops the scenario 6.2s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 5.2s
🟢 device fixture › setLocation and clearLocation change what the app reads 11.6s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 11.2s
🟢 tests/device.e2e.ts · 4 passed 55.3s
🟢 sequential onboarding echoes the exact values 26.2s
🟢 isKeyboardShown follows the keyboard up and through a dismissal 8.1s
🟢 onboarding rejects a malformed email before advancing 10.0s
🟢 dismissing the keyboard over choice controls leaves them as they were 11.1s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 58s
🟢 infinite scroll reaches the target item 30.1s
🟢 product catalog adds exactly two of the right variant 9.8s
🟢 gestures: long-press, then swipe left 8.5s
🟢 sticky chrome: accept below the fold, then continue 12.4s
🟢 async states: load, pull to refresh, claim through the toast 11.2s
🟢 huge virtualized list reaches row 512 2m 33s
🟢 web view coupon form applies the code shown on the page 12.7s
🟢 tests/flows.e2e.ts · 7 passed 1m 8s
🟢 text inputs unlock the submit button 12.2s
🟢 filled text inputs report their values 10.4s
🟢 modal flow confirms through the native alert 9.7s
🟢 bottom tabs act inside the last tab 7.5s
🟢 error recovery retries, then confirms the delete 9.2s
🟢 choice controls place the exact order 7.4s
🟢 debounced search selects the target once results arrive 11.2s
🟢 tests/login-form.e2e.ts · 3 passed 45.8s
🟢 login form › rejects a malformed email 12.5s
🟢 login form › rejects an unknown account 13.4s
🟢 login form › signs in and logs out 19.9s
🟢 tests/smoke.e2e.ts · 1 passed 8.1s
🟢 home lists the scenarios and opens one 8.1s

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

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e android: 60 passed, 1 skipped

All 61 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 40s
🟢 control inventory › a label query resolves a labeled text field 22.0s
🟢 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 5.1s
🟢 control inventory › a secure field takes a fill and denies value reads 6.1s
🟢 control inventory › press sends a character and Enter through the soft keyboard 7.3s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.2s
🟢 control inventory › toBeFocused follows the focus 8.2s
🟢 control inventory › a switch checks, unchecks, and reports its state 8.2s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 7.1s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.1s
🟢 control inventory › a tab role answers getByRole 4.2s
🟢 control inventory › a radio group reports the checked option 7.7s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.8s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.5s
🟢 control inventory › a header answers its accessible name 3.9s
🟢 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.3s
⏭️ 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.1s
🟢 control inventory › a double tap lands inside the 300 ms window 6.4s
🟢 control inventory › an ambiguous locator fails at once 5.0s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 7.1s
🟢 refusals › verbs a device never declares are refused before the engine 6ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 1.3s
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 13 passed 1m 28s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 4.9s
🟢 device fixture › home leaves the app, openApp brings it back where it was 5.0s
🟢 device fixture › foregroundApp sees the home screen after home() 4.0s
🟢 device fixture › closeApp then openApp relaunches on the home list 5.9s
🟢 device fixture › closeApp leaves the next commands on the same device 6.9s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 4.3s
🟢 device fixture › openLink opens the scenario a deep link names 4.7s
🟢 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 8.1s
🟢 device fixture › device.back pops the scenario 4.3s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.9s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 15.4s
🟢 device fixture › setLocation and clearLocation change what the app reads 16.8s
🟢 tests/device.e2e.ts · 5 passed 38.7s
🟢 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
🟢 sequential onboarding echoes the exact values 9.9s
🟢 onboarding rejects a malformed email before advancing 5.4s
🟢 dismissing the keyboard over choice controls leaves them as they were 6.2s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 6s
🟢 infinite scroll reaches the target item 27.7s
🟢 product catalog adds exactly two of the right variant 8.6s
🟢 gestures: long-press, then swipe left 7.8s
🟢 gestures: double-tap completes the flow 9.3s
🟢 sticky chrome: accept below the fold, then continue 10.7s
🟢 async states: load, pull to refresh, claim through the toast 11.9s
🟢 huge virtualized list reaches row 512 1m 50s
🟢 tests/flows.e2e.ts · 7 passed 49.0s
🟢 text inputs unlock the submit button 6.1s
🟢 filled text inputs report their values 5.3s
🟢 modal flow confirms through the native alert 8.5s
🟢 bottom tabs act inside the last tab 6.5s
🟢 error recovery retries, then confirms the delete 8.4s
🟢 choice controls place the exact order 5.9s
🟢 debounced search selects the target once results arrive 8.3s
🟢 tests/login-form.e2e.ts · 3 passed 26.0s
🟢 login form › rejects a malformed email 7.0s
🟢 login form › rejects an unknown account 6.9s
🟢 login form › signs in and logs out 12.1s
🟢 tests/smoke.e2e.ts · 1 passed 5.4s
🟢 home lists the scenarios and opens one 5.4s

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

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 21 passed, 1 skipped

25 agent steps · 12 replayed from cache · 55 model calls · 391.8k tokens (84% cached) · $0.0245

All 22 tests in 1 file
Test Agent Time
⏭️ tests-agent/scenarios.e2e.ts · 21 passed, 1 skipped 25 steps · 55 calls 7m 54s
🟢 act completes Login Form 1 step 40.9s
🟢 act completes Infinite Scroll List 1 step 38.4s
🟢 act completes Modal Flow 1 step 10.8s
🟢 act completes Bottom Tabs 1 step 7.6s
🟢 act completes Text Input Variations 1 step 12.8s
🟢 act completes Broken Accessibility 2 steps · 5 calls 20.9s
🟢 act completes Vision Only 2 steps · 6 calls 23.4s
🟢 act completes Gestures 1 step · 5 calls 18.6s
🟢 act completes Async States 1 step · 10 calls 32.0s
🟢 act completes Debounced Search 1 step · 1 call 28.1s
🟢 act completes Flattened Registration Form 2 steps · 1 call 25.0s
🟢 act completes Flattened Login 2 steps · 11 calls 52.6s
🟢 act completes Sticky Chrome Target 1 step 13.3s
🟢 act completes WebView Accessibility 1 step 12.3s
🟢 act completes Permission Prompt 1 step 11.8s
🟢 act completes Photo Picker 1 step · 2 calls 27.8s
🟢 act completes Product Catalog 1 step 10.5s
🟢 act completes Error Recovery 1 step 9.8s
🟢 act completes Choice Controls 1 step · 5 calls 33.7s
🟢 act completes Stripe PaymentSheet 1 step · 9 calls 32.3s
🟢 act completes Apple Pay 1 step 11.5s
⏭️ 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 · 7m 55s · ios-simulator · run artifacts

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.

2 participants