Repository navigation
Conversation
🟢 e2e web: 95 passedAll 95 tests in 43 files
Tested by e2e 0.24.0 · 1m 6s · web · run artifacts |
🟢 e2e web agent: 34 passed35 agent steps · 26 replayed from cache · 25 model calls · 133.8k tokens (94% cached) · $0.0055 All 34 tests in 5 files
Tested by e2e 0.24.0 · 1m 33s · web · run artifacts |
🟢 e2e android agent: 20 passed24 agent steps · 15 replayed from cache · 36 model calls · 216.2k tokens (88% cached) · $0.0117 All 20 tests in 1 file
Tested by e2e 0.24.0 · 5m 45s · android-emulator · run artifacts |
🟢 e2e ios: 62 passed, 1 skippedAll 63 tests in 7 files
Tested by e2e 0.24.0 · 7m 5s · ios-simulator · run artifacts |
🟢 e2e android: 63 passed, 1 skippedAll 64 tests in 7 files
Tested by e2e 0.24.0 · 9m 21s · android-emulator · run artifacts |
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 12 replayed from cache · 56 model calls · 391.6k tokens (84% cached) · $0.0241 All 22 tests in 1 file
Tested by e2e 0.24.0 · 8m 24s · ios-simulator · run artifacts |
bcdeb58 to
ca54b9b
Compare
5e12b4b to
734d7e9
Compare
MicrobenchmarksFor ⚪ No case changed by 0.5% or more. Repeatability: two builds of the head agree in every case, 10 trials each. Base A direction is reported only when the trial ranges of base and head do not overlap and the change is at least 0.5%.
How this is measuredInstructions 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.
Workflow run: each job's summary, and |
What
locatorsat the top level or on each target to change the defaultvisibleofgetByText,getByLabel,getByPlaceholder,getByDisplayValue, andgetByTestId.locators.visibleoverrides the top-level value, and passingvisibleto a query overrides both. The default isfalse.getByRoledoesn't use the default.On the iOS target, which inherits the top-level default:
Why
{ visible: true }to almost every query.How it works
locatorsis checked per target, using the target'svisible, then the top-level value, thenfalse(packages/core/src/config/resolve.ts:253,:702).ResolvedTarget.locators(packages/core/src/config/targets.ts:46). It's included in the config digest only whenvisibleis true (targets.ts:166). The top-level key is left out (resolve.ts:1046).packages/core/src/run/fixtures.ts:152,:174).textQueryandtestIdQuery(packages/core/src/locator/screen.ts:199), andvisibilityuses it whenvisibleisn't set (packages/core/src/locator/expression.ts:41).roleQuerypassesfalse(expression.ts:35), since a role query already skips nodes hidden from the accessibility tree on every engine.e2e mcpsession,run_code's screen gets the same value (packages/e2e/src/session-tools/run-code.ts:248).locateand the test lines build their queries with one closure (packages/e2e/src/session-tools/catalog.ts:95,:201). Whenlocatefinds nothing under the default, its hint says hidden nodes were skipped (catalog.ts:251). Text, label, placeholder, and test id lines omit{ visible: true }whenlocators.visibleistrue(packages/e2e/src/session-tools/test-lines.ts:578). Both catalog callers pass the target's value (packages/e2e/src/mcp/session.ts:488,packages/e2e/src/run/worker/held-test-tools.ts:504).Error codes for invalid values:
INVALID_CONFIGlocators(top level or on a target) isn't a plain object, has a key other thanvisible, or has a non-booleanvisibleVerified
Ran it locally: yes, Chromium and Firefox.
A scratch config in the testbed set
locators: { visible: true }on a Chromium and a Firefox target. The test runs on/controls, which has a hiddenbannertwin, and adds a hidden copy of the#couponinput:node node_modules/e2e/dist/cli/bin.js run --config e2e.visible-verify.config.ts --video on:With
locators: { visible: 'yes' }:locators-visible.test.tsand therun_codetest inmcp-run-code.test.tspass with their configs switched toweb({ browser: 'firefox' })(Firefox 159.0, checked withnavigator.userAgent).tests/integration/locators-visible.test.tsruns a config file through worker processes twice: once with a target that inheritsvisible: true, and once with a target that setsfalse. Both runs pass. Each also checks that a role query matches a zero-size checkbox unless the query setsvisible: true.tests/integration/mcp-run-code.test.tsrunsrun_codein a session whose config setslocators: { visible: true }.visiblepredicate from the query (packages/mobile/src/locate.ts:131). This change doesn't touch it.pnpm bench:ab: not run. An inheritedvisible: truegives the same locator predicate as an explicit{ visible: true }.pnpm docs:checkcovers the changed pages.Videos from the Chromium and Firefox runs are attached below, in order.
Checklist
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it..d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures.e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.chromium-locators-visible.webm
firefox-visible.webm