Skip to content

feat(expect): add toBeEmpty locator matcher (ENG-1229) - #2219

Merged
okwasniewski merged 4 commits into
mainfrom
krzysztof/to-be-empty
Nov 24, 2026
Merged

okwasniewski merged 4 commits into
mainfrom
krzysztof/to-be-empty

Conversation

@KrzysztofMoch

@KrzysztofMoch KrzysztofMoch commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What

expect(locator).toBeEmpty() waits for a node to be empty, with Playwright's rules on the web.

await expect(screen.getByLabel('Search')).toBeEmpty();
await expect(screen.getByTestId('cart')).not.toBeEmpty();
  • Web: an input or textarea is empty when its value is '', read as it is, so a space is not empty. Any other element is empty when its trimmed textContent is '', hidden text included.
  • Mobile: a text field is empty when it has no value, so its label or hint doesn't count. Any other node is empty when nothing in its subtree shows text or a value.
  • Desktop reports no empty state yet, so toBeEmpty fails either way there, with a message that says so.

It takes only { timeout }, works with .not and a custom message, and is POLICY_DENIED on a secure field, like toHaveValue.

Takes over #1869 by @ftaakash. Their commit is the first one here, with them as author.

Why

toBeEmpty is on the Playwright parity list (ENG-1229). #1869 decided value or text by role in core, because a semantic node has no tag. That made it pass on six elements that show text: an ARIA combobox, an ARIA listbox, a non-editable ARIA textbox, a native select, a submit input and a checkbox. Playwright decides by tag, so the engine has to answer. toBeEditable (#1962) took the same route for read-only.

How it works

  1. The engine contract gets an empty node state (packages/core/src/engine/contract.ts:201). Engines report it on the nodes locate returns, never in an observation and never on a secure field, so agent prompts, replay-cache anchors and the mobile golden trees don't change.
  2. The web reader computes it in the page with Playwright's rule (emptyOf, packages/web/src/in-page/read-semantics.ts:1699), only in the single-node projection that locator reads use (:1841). It checks the tag name, not instanceof, so a filled input moved in from another frame still reads by its value.
  3. The mobile engine adds it to each located node (withEmptyState, packages/mobile/src/nodes.ts:129, called from packages/mobile/src/surface.ts:1299). Fields go by role (textbox, searchbox) rather than mayTakeText, since an iOS other holding only text is as often a container as a drawn field. Below a container, a field counts only by its value and a secure field counts as nothing.
  4. toBeEmpty reads only that state (packages/e2e/src/expect/async.ts:482), the way toBeEditable reads readonly. A node with no state keeps the poll waiting and fails with observed: no empty state, which this engine does not report.
  5. State-matcher failure messages and MCP locate lines leave empty out (async.ts:689, packages/e2e/src/session-tools/catalog.ts:289), so toBeChecked never prints states: empty.
  6. Docs: the expect and engine references, the Playwright and Cypress migration rows, the skill, and the ja/zh toBeEmpty sections. The peer floors already require >=0.25.0, the unreleased version this ships in.

Not done: desktop. It's a macOS-only prototype, and #1962 also left it without readonly. iOS reports a field drawn by Flutter or Compose Multiplatform as a plain view, so its placeholder counts and an empty one never reads empty. The reference page documents this.

Issue

Part of #1855. Replaces #1869.

Verified

Ran it locally: yes (Linux, Chromium)

Testbed, the built CLI against a scratch test (not committed): Playwright's cases, the six elements from #1869's review table, a fill then clear, a custom-message failure and a password field.

 ✓ |web| tests/zz-to-be-empty.e2e.ts > toBeEmpty reads fields by value and anything else by text content 9.55s
 × |web| tests/zz-to-be-empty.e2e.ts > a failing toBeEmpty says what it read
 × |web| tests/zz-to-be-empty.e2e.ts > toBeEmpty on a password field is denied

ASSERTION_FAILED: the fruit picker is cleared: expect.toBeEmpty failed
locator: getByTestId("combobox")
expected: empty
observed: not empty (match count 1)

POLICY_DENIED: reading values from a secure field is denied: getByLabel("Password")

The two failures are the intended ones. The password value appears in no file under .e2e/.

Element #1869 head (f65722e) this PR
<button role="combobox">Select a fruit</button> empty not empty
<ul role="listbox"><li role="option">Apple</li></ul> empty not empty
<div role="textbox">hello</div> empty not empty
<select> with options empty not empty
<input type="submit" value="Go"> empty not empty
<input type="checkbox"> empty not empty

The left column is what #1869's own web-platform.test.ts asserted at that head. Each case now passes not.toBeEmpty() in web-platform.test.ts:124.

  • Mutants: reading rendered text instead of textContent fails the hidden-text case; instanceof instead of the tag name fails the adopted-input case. The mobile unit test has a container holding only a labeled empty field and a filled password field; the old subtree rule read it as not empty.
  • Testbed default suite: 607 passed. An earlier run hit the locator-frame.e2e.ts "should wait for frame to go" flake, which feat: add expect(locator).toBeEmpty() #1869's CI also hit on a head that didn't touch the web engine.
  • Mobile on a device: not run. No simulator on this machine. Covered by the engine and node unit tests on fixture Android and iOS snapshots.

pnpm bench:ab --suite testbed -- tests/forms.e2e.ts, a locator-read-heavy suite. Every located node on the web now also computes its empty state:

bench-ab: 425cdb28 (merge base with origin/main) vs d5ed00b1 (this branch before its rebase onto main, same code)

apps/testbed: e2e run --workers 1 tests/forms.e2e.ts. 6 pairs in random order, resolved after 6 pairs. Threshold ±5% and 10 ms. linux x64, AMD Ryzen 7 8845HS w/ Radeon 780M Graphics x16, Node 24.18.0, load 1.1.

Behavior

Every test ran the same steps with the same outcome on every run of both builds.

Timings

Metric base median (IQR) head median (IQR) change (95% CI) verdict
wall (process) 3.15 s (3.14 s-3.15 s) 3.15 s (3.15 s-3.16 s) -0.0% (-0.2% to +0.6%) same, under the floor
suite (sum of attempts) 2.10 s (2.10 s-2.11 s) 2.11 s (2.11 s-2.11 s) +0.3% (-0.3% to +0.4%) same, under the floor
action (events) 529 ms (527 ms-534 ms) 528 ms (526 ms-530 ms) -0.2% (-1.7% to +1.4%) same, under the floor
step expect.not.toBeChecked 1.01 s (1.01 s-1.01 s) 1.01 s (1.01 s-1.01 s) -0.1% (-0.1% to +0.3%) same, under the floor
step locator.fill 276 ms (274 ms-277 ms) 278 ms (275 ms-278 ms) -0.2% (-1.6% to +2.2%) same, under the floor
step app.open 190 ms (188 ms-193 ms) 192 ms (189 ms-192 ms) -0.0% (-2.6% to +2.7%) same, under the floor
step locator.tap 93 ms (91 ms-95 ms) 90 ms (88 ms-91 ms) -1.6% (-8.5% to +1.6%) same, under the floor
step locator.pressSequentially 62 ms (61 ms-62 ms) 61 ms (60 ms-63 ms) -1.6% (-4.0% to +4.9%) same, under the floor
step locator.uncheck 49 ms (47 ms-52 ms) 49 ms (47 ms-51 ms) -4.9% (-9.1% to +10.6%) same, under the floor
step locator.check 41 ms (38 ms-45 ms) 45 ms (42 ms-45 ms) +8.6% (-15.7% to +25.5%) same, under the floor
step expect.toBeVisible 31 ms (30 ms-32 ms) 32 ms (31 ms-32 ms) +3.3% (-1.5% to +6.8%) same, under the floor
step locator.selectOption 30 ms (29 ms-30 ms) 30 ms (29 ms-31 ms) +1.7% (-1.7% to +3.6%) same, under the floor
step locator.clear 30 ms (29 ms-31 ms) 29 ms (29 ms-30 ms) -3.3% (-6.5% to +3.4%) same, under the floor
step expect.toHaveValue 13 ms (13 ms-13 ms) 15 ms (15 ms-16 ms) +15.4% (+3.5% to +28.1%) same, under the floor
step expect.toHaveCount 10 ms (9 ms-10 ms) 10 ms (9 ms-11 ms) 0.0% (-9.5% to +16.0%) same
step expect.toHaveText 8 ms (7 ms-8 ms) 6 ms (5 ms-6 ms) -24.4% (-37.5% to -7.4%) same, under the floor
step expect.toBeChecked 3 ms (3 ms-4 ms) 4 ms (3 ms-4 ms) 0.0% (-22.5% to +33.3%) same

Counters

Every counter matched on every run of both builds.

Tests outside the threshold: 0 of 608

With 608 tests compared at 95%, about 30.4 could land outside by chance.


Taken over and finished by Claude Code (Opus 5.5).

to-be-empty.webm

View guided diff Turn on auto-fix

@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 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 34 passed

36 agent steps · 26 replayed from cache · 25 model calls · 128.5k tokens (94% cached) · $0.0054

All 34 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 7 passed 7 steps 8.1s
🟢 control inventory › check sets the checkbox and the radio 1 step 880ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 319ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 974ms
🟢 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 382ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 411ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 414ms
🟢 act signs in with the benchmark account 1 step 414ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 5 steps · 9 calls 12.9s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 5.4s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.5s
🟢 wishlist: a judgment catches the lost saved items 2 steps · 4 calls 6.1s
🟢 tests-agent/scenarios.e2e.ts · 22 passed 22 steps · 16 calls 1m 19s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.6s
🟢 act completes lying-labels 1 step · 3 calls 4.3s
🟢 act completes iframe-form 1 step · 3 calls 3.9s
🟢 act completes infinite-scroll 1 step 3.5s
🟢 act completes virtualized-table 1 step 22.7s
🟢 act completes overlay-trap 1 step 1.1s
🟢 act completes sticky-chrome 1 step 988ms
🟢 act completes async-states 1 step · 3 calls 7.2s
🟢 act completes debounced-search 1 step 2.4s
🟢 act completes hover-menu 1 step 619ms
🟢 act completes drag-and-drop 1 step 538ms
🟢 act completes kanban-board 1 step 749ms
🟢 act completes context-menu-trap 1 step 2.8s
🟢 act completes stale-dom 1 step 578ms
🟢 act completes otp-auto-advance 1 step 876ms
🟢 act completes date-picker 1 step 999ms
🟢 act completes rich-text-editor 1 step 10.5s
🟢 act completes playbook-cleanup 1 step 644ms
🟢 act completes promo-storefront 1 step 1.3s
🟢 act completes new-tab-flow 1 step · 4 calls 7.3s
🟢 act completes gift-card-purchase 1 step 2.5s
🟢 act filters the list and the URL carries the filter 1 step 319ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 392ms
🟢 act adds an address with a run-unique label 1 step 392ms

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

@github-actions

github-actions Bot commented Nov 24, 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 868ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 640ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 228ms
🟢 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 348ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 176ms
🟢 canvas only › a shape out of order paints the error and resets progress 172ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 541ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 302ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 239ms
🟢 tests/cart-totals.e2e.ts · 2 passed 458ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 256ms
🟢 cart totals › a quantity never drops below one 202ms
🟢 tests/checkout-review.e2e.ts · 1 passed 208ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 208ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 714ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 367ms
🟢 context menu trap › the decoy menu items refuse and keep the file 347ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.9s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 292ms
🟢 control inventory › check picks a radio the pick replaces with its summary 218ms
🟢 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 286ms
🟢 control inventory › setInputFiles attaches files named from the project root 218ms
🟢 control inventory › the details view is left through the browser history 239ms
🟢 control inventory › scrollIntoView brings the footnote into view 225ms
🟢 control inventory › every exercise done shows the success message 1.3s
🟢 tests/css-content-ui.e2e.ts · 2 passed 378ms
🟢 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 148ms
🟢 tests/date-picker.e2e.ts · 2 passed 785ms
🟢 date picker › navigates three months ahead and books the required date 450ms
🟢 date picker › confirming without the exact date shows the error 335ms
🟢 tests/debounced-search.e2e.ts · 2 passed 2.9s
🟢 debounced search › a decoy one character off is refused 1.4s
🟢 debounced search › picking the exact item adds it to the cart 1.5s
🟢 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 872ms
🟢 div soup › a wrong code is rejected 388ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 484ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 766ms
🟢 drag and drop › an out-of-order item resets the dropzone 388ms
🟢 drag and drop › dropping Banana then Cherry passes 378ms
🟢 tests/file-round-trip.e2e.ts · 2 passed 491ms
🟢 file round trip › downloads the issued voucher and verifies the same file uploaded back 235ms
🟢 file round trip › rejects a file that is not the voucher, then accepts the issued one 256ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 315ms
🟢 filter deep link › filtering writes the query to the URL 176ms
🟢 filter deep link › opening a shared link restores the filter 139ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 750ms
🟢 gift card purchase › refuses to buy without an amount 206ms
🟢 gift card purchase › refuses a recipient without an at sign 274ms
🟢 gift card purchase › sends the gift card 270ms
🟢 tests/hover-menu.e2e.ts · 2 passed 615ms
🟢 hover menu › a decoy leaf is refused 278ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 337ms
🟢 tests/iframe-form.e2e.ts · 2 passed 741ms
🟢 iframe form › a wrong code is refused by the host page 354ms
🟢 iframe form › the code read from one frame applies through the other 387ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 663ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 165ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 239ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 259ms
🟢 tests/infinite-scroll.e2e.ts · 1 passed 3.0s
🟢 scrolls the feed until the Golden Ticket loads, then claims it 3.0s
🟢 tests/kanban-board.e2e.ts · 3 passed 918ms
🟢 kanban board › pointer drags move both cards into the goal layout 456ms
🟢 kanban board › a swipe along a path drags a card as well 190ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 272ms
🟢 tests/login-form.e2e.ts · 4 passed 950ms
🟢 login form › rejects a malformed email 221ms
🟢 login form › rejects a short password 220ms
🟢 login form › rejects an unknown account 219ms
🟢 login form › signs in and logs out 290ms
🟢 tests/lying-labels.e2e.ts · 4 passed 863ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 222ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 144ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 253ms
🟢 lying labels › visible text drives the payment through 244ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 576ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 191ms
🟢 native dialogs › dismissing the confirm cancels the order 181ms
🟢 native dialogs › a wrong gift code is rejected 204ms
🟢 tests/new-tab-flow.e2e.ts · 2 passed 710ms
🟢 new tab flow › reads the code in the tab the app opens and enters it back in the original tab 369ms
🟢 new tab flow › a tap that opens a tab leaves the screen on the original tab, and activate shows the new one 341ms
🟢 tests/newsletter-signup.e2e.ts · 1 passed 2.3s
🟢 subscribe renders no feedback and logs a TypeError (planted bug) 2.3s
🟢 tests/onboarding-wizard.e2e.ts · 5 passed 6.5s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 404ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 487ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.6s
🟢 onboarding wizard › the preferences step flips the toggles the brief names and leaves the trap off 1.9s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 2.1s
🟢 tests/order-history.e2e.ts · 2 passed 1.7s
🟢 order history › overview and settings render their panels 307ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.3s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.6s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 580ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 193ms
🟢 otp auto-advance › a wrong code clears every box and starts over 847ms
🟢 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 650ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 335ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 315ms
🟢 tests/price-sorting.e2e.ts · 3 passed 548ms
🟢 price sorting › opens in the featured order with sale prices struck through 139ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 186ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 223ms
🟢 tests/product-reviews.e2e.ts · 1 passed 1.2s
🟢 the running-shoe page lists coffee-grinder reviews (planted bug) 1.2s
🟢 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 667ms
🟢 rich text editor › bolding exactly the required word passes the check 327ms
🟢 rich text editor › bold that spills into the previous word fails the check 340ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 681ms
🟢 saved addresses › adds an address and clears the form 245ms
🟢 saved addresses › ignores an add with an empty field 207ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 229ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 433ms
🟢 shadow DOM form › rejects a wrong access code 217ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 216ms
🟢 tests/smoke.e2e.ts · 1 passed 338ms
🟢 home lists the scenarios and opens one 338ms
🟢 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 220ms
🟢 accepts the terms once the button clears the sticky footer 220ms
🟢 tests/virtualized-table.e2e.ts · 1 passed 19.7s
🟢 scrolls the windowed table to the Golden Row and claims it 19.7s
🟢 tests/wishlist.e2e.ts · 2 passed 1.7s
🟢 wishlist › saving toggles the button and the tab badge 352ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.4s

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 60 passed, 1 skipped

All 61 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 23 passed, 1 skipped 2m 55s
🟢 control inventory › a label query resolves a labeled text field 14.2s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 14.6s
🟢 control inventory › a placeholder query and attribute reads find the field 4.5s
🟢 control inventory › a secure field takes a fill and denies value reads 7.1s
🟢 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 9.5s
🟢 control inventory › toBeFocused follows the focus 9.8s
🟢 control inventory › a switch checks, unchecks, and reports its state 9.8s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 9.2s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 12.3s
🟢 control inventory › a radio group reports the checked option 8.8s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.5s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.9s
🟢 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 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.1s
🟢 control inventory › pointer verbs land at the point asked for 9.2s
🟢 control inventory › an ambiguous locator fails at once 5.5s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 11.0s
🟢 refusals › verbs a device never declares are refused before the engine 3ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 278ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 14 passed 2m 4s
🟢 device fixture › setAppearance flips the color scheme the app reads 16.7s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 8.5s
🟢 device fixture › the clipboard reads back what was written 5.5s
🟢 device fixture › home leaves the app, openApp brings it back where it was 7.9s
🟢 device fixture › closeApp then openApp relaunches on the home list 8.6s
🟢 device fixture › closeApp leaves the next commands on the same device 11.9s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 6.2s
🟢 device fixture › openLink opens the scenario a deep link names 13.5s
🟢 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 9.3s
🟢 device fixture › device.back pops the scenario 4.9s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 4.6s
🟢 device fixture › setLocation and clearLocation change what the app reads 9.7s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 9.7s
🟢 tests/device.e2e.ts · 5 passed 57.6s
🟢 sequential onboarding echoes the exact values 24.8s
🟢 isKeyboardShown follows the keyboard up and through a dismissal 7.8s
🟢 a shake is sent without an error and leaves the screen readable 4.4s
🟢 onboarding rejects a malformed email before advancing 9.4s
🟢 dismissing the keyboard over choice controls leaves them as they were 11.2s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 59s
🟢 infinite scroll reaches the target item 34.6s
🟢 product catalog adds exactly two of the right variant 10.5s
🟢 gestures: long-press, then swipe left 8.6s
🟢 sticky chrome: accept below the fold, then continue 12.5s
🟢 async states: load, pull to refresh, claim through the toast 11.7s
🟢 huge virtualized list reaches row 512 2m 29s
🟢 web view coupon form applies the code shown on the page 11.6s
🟢 tests/flows.e2e.ts · 7 passed 1m 10s
🟢 text inputs unlock the submit button 13.2s
🟢 filled text inputs report their values 10.4s
🟢 modal flow confirms through the native alert 10.0s
🟢 bottom tabs act inside the last tab 7.7s
🟢 error recovery retries, then confirms the delete 9.5s
🟢 choice controls place the exact order 7.6s
🟢 debounced search selects the target once results arrive 11.3s
🟢 tests/login-form.e2e.ts · 3 passed 45.5s
🟢 login form › rejects a malformed email 12.5s
🟢 login form › rejects an unknown account 12.8s
🟢 login form › signs in and logs out 20.2s
🟢 tests/smoke.e2e.ts · 1 passed 7.6s
🟢 home lists the scenarios and opens one 7.6s

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 21 passed, 1 skipped

25 agent steps · 12 replayed from cache · 60 model calls · 421.4k tokens (84% cached) · $0.0272

All 22 tests in 1 file
Test Agent Time
⏭️ tests-agent/scenarios.e2e.ts · 21 passed, 1 skipped 25 steps · 60 calls 8m 24s
🟢 act completes Login Form 1 step 38.4s
🟢 act completes Infinite Scroll List 1 step 38.2s
🟢 act completes Modal Flow 1 step 11.3s
🟢 act completes Bottom Tabs 1 step 7.5s
🟢 act completes Text Input Variations 1 step 12.4s
🟢 act completes Broken Accessibility 2 steps · 5 calls 21.6s
🟢 act completes Vision Only 2 steps · 6 calls 26.2s
🟢 act completes Gestures 1 step · 10 calls 42.1s
🟢 act completes Async States 1 step · 12 calls 42.6s
🟢 act completes Debounced Search 1 step · 1 call 28.0s
🟢 act completes Flattened Registration Form 2 steps · 1 call 24.2s
🟢 act completes Flattened Login 2 steps · 11 calls 54.6s
🟢 act completes Sticky Chrome Target 1 step 13.0s
🟢 act completes WebView Accessibility 1 step 11.6s
🟢 act completes Permission Prompt 1 step 10.7s
🟢 act completes Photo Picker 1 step · 2 calls 26.0s
🟢 act completes Product Catalog 1 step 10.0s
🟢 act completes Error Recovery 1 step 10.3s
🟢 act completes Choice Controls 1 step · 5 calls 33.5s
🟢 act completes Stripe PaymentSheet 1 step · 7 calls 27.6s
🟢 act completes Apple Pay 1 step 13.8s
⏭️ 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 25s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 33 model calls · 191.3k tokens (88% cached) · $0.0105

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 33 calls 5m 57s
🟢 act completes Login Form 1 step 36.6s
🟢 act completes Infinite Scroll List 1 step 22.9s
🟢 act completes Modal Flow 1 step 12.2s
🟢 act completes Bottom Tabs 1 step 7.8s
🟢 act completes Text Input Variations 1 step 8.5s
🟢 act completes Broken Accessibility 2 steps · 5 calls 14.2s
🟢 act completes Vision Only 2 steps · 1 call 6.8s
🟢 act completes Gestures 1 step · 7 calls 19.3s
🟢 act completes Async States 1 step · 8 calls 15.6s
🟢 act completes Debounced Search 1 step 7.1s
🟢 act completes Huge Virtualized List 1 step 1m 52s
🟢 act completes Flattened Registration Form 2 steps · 1 call 8.6s
🟢 act completes Flattened Login 2 steps · 6 calls 14.5s
🟢 act completes Sticky Chrome Target 1 step 9.0s
🟢 act completes WebView Accessibility 1 step · 5 calls 15.0s
🟢 act completes Permission Prompt 1 step 7.4s
🟢 act completes Product Catalog 1 step 9.1s
🟢 act completes Error Recovery 1 step 10.4s
🟢 act completes Choice Controls 1 step 9.4s
🟢 act completes Sequential Onboarding 1 step 10.7s

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

ftaakash and others added 4 commits November 24, 2026 18:44
Imported from #1869 (head f65722e), squashed onto main. The run_code
grammar entry is dropped: #1998 deleted code-surface.ts, and run_code now
calls the real expect.
toBeEmpty decided value vs text by role in core, since a semantic node
has no tag, so an ARIA combobox or listbox, a non-editable ARIA textbox,
a native select, a submit input, and a checkbox all read as empty where
Playwright finds them not empty.

Engines now report an empty node state on located nodes, never in an
observation and never on a secure field. The web engine reads it in the
page as Playwright does: an input or textarea by its raw value, any other
element by its trimmed text content. The mobile engine reads a text field
by its value and any other node by the text and values in its subtree.
toBeEmpty reads only that state, like toBeEditable reads readonly, and
fails either way where an engine reports none (desktop, older engines).

The empty state stays out of state-matcher failure messages and MCP
locate output.
- Web: read an input or textarea by tag name, as Playwright does. A
  filled input adopted from another frame failed instanceof, fell
  through to its empty text content, and passed toBeEmpty.
- Mobile: a field below a container counts by its value alone and a
  secure one not at all, so a container holding only an empty field with
  a label or hint is empty, and a filled password field is not told.
- Document that iOS reports a field Flutter or Compose Multiplatform
  draws as a plain view, so its placeholder counts.
@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e android: 61 passed, 1 skipped

All 62 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 41s
🟢 control inventory › a label query resolves a labeled text field 24.3s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 11.8s
🟢 control inventory › a placeholder query and attribute reads find the field 6.4s
🟢 control inventory › a secure field takes a fill and denies value reads 7.3s
🟢 control inventory › press sends a character and Enter through the soft keyboard 8.3s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.0s
🟢 control inventory › toBeFocused follows the focus 7.4s
🟢 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 7.0s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.2s
🟢 control inventory › a tab role answers getByRole 3.5s
🟢 control inventory › a radio group reports the checked option 7.4s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.7s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.0s
🟢 control inventory › a header answers its accessible name 3.5s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.2s
🟢 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.7s
🟢 control inventory › a double tap lands inside the 300 ms window 6.1s
🟢 control inventory › an ambiguous locator fails at once 4.7s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 5.8s
🟢 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 22s
🟢 device fixture › setOrientation rotates the window and viewport dimensions 4.9s
🟢 device fixture › home leaves the app, openApp brings it back where it was 4.1s
🟢 device fixture › foregroundApp sees the home screen after home() 3.6s
🟢 device fixture › closeApp then openApp relaunches on the home list 6.0s
🟢 device fixture › closeApp leaves the next commands on the same device 5.8s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 4.1s
🟢 device fixture › openLink opens the scenario a deep link names 4.1s
🟢 device fixture › isAppInstalled finds the app under test and no app that is absent 3.3s
🟢 device fixture › uninstallApp removes the app until installApp puts it back 6.9s
🟢 device fixture › device.back pops the scenario 4.5s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.4s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 15.5s
🟢 device fixture › setLocation and clearLocation change what the app reads 16.2s
🟢 tests/device.e2e.ts · 6 passed 40.8s
🟢 permission prompt › allowing the system dialog enables the microphone 5.3s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.1s
🟢 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.0s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 2s
🟢 infinite scroll reaches the target item 27.3s
🟢 product catalog adds exactly two of the right variant 8.0s
🟢 gestures: long-press, then swipe left 7.3s
🟢 gestures: double-tap completes the flow 9.0s
🟢 sticky chrome: accept below the fold, then continue 10.1s
🟢 async states: load, pull to refresh, claim through the toast 11.3s
🟢 huge virtualized list reaches row 512 1m 49s
🟢 tests/flows.e2e.ts · 7 passed 46.5s
🟢 text inputs unlock the submit button 5.5s
🟢 filled text inputs report their values 5.1s
🟢 modal flow confirms through the native alert 8.4s
🟢 bottom tabs act inside the last tab 6.2s
🟢 error recovery retries, then confirms the delete 8.1s
🟢 choice controls place the exact order 5.4s
🟢 debounced search selects the target once results arrive 7.8s
🟢 tests/login-form.e2e.ts · 3 passed 25.3s
🟢 login form › rejects a malformed email 6.8s
🟢 login form › rejects an unknown account 6.8s
🟢 login form › signs in and logs out 11.6s
🟢 tests/smoke.e2e.ts · 1 passed 4.7s
🟢 home lists the scenarios and opens one 4.7s

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

@KrzysztofMoch KrzysztofMoch added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 24, 2026
@okwasniewski
okwasniewski merged commit c8df611 into main Nov 24, 2026
38 checks passed
@okwasniewski
okwasniewski deleted the krzysztof/to-be-empty branch November 24, 2026 18:13
@kdy1 kdy1 mentioned this pull request Nov 25, 2026
3 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e team Opened by the e2e team Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size: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.

3 participants