Repository navigation
e2e@0.26.0
Minor Changes
-
#2253
f127149Thanks @okwasniewski! - Breaking: A negated matcher now passes on the first read that satisfies the negation, as in Playwright. It used to pass only after the negation had held for 1 second. This covers.noton every locator matcher (expect(locator).not.toBeVisible()and the rest), onexpect(browser)(not.toHaveURL,not.toHaveTitle,not.toHaveClass), and ontoHaveScreenshot, andpollConditionwithnegated: truein a custom engine.A passing negated assertion is about 1 second faster. An assertion that relied on the hold, such as
.not.toBeHidden()to check that a spinner stays up, or.not.toBeVisible()right after an action whose effect has not started yet, now passes at once: assert the state that follows instead, for example the content that replaces the spinner. A negated matcher still fails when no read satisfies the negation before the timeout.A read whose node another lookup superseded no longer counts as an absent node:
toBeHidden(),.not.toBeVisible(),.not.toBeAttached(), andwaitFor({ state: 'hidden' | 'detached' })read again instead of passing on it. -
#2367
b70181bThanks @okwasniewski! - Breaking:getByTexton a device or a desktop app no longer matches a node by its accessible name when the node shows text of its own. It matches the text the node shows, and the name only of a node that shows none, such as an icon button. ReplacegetByText(name)withgetByLabel(name), or query the text the node shows. This affects a text an app names otherwise, an Android text or filled field with a content description (<Text accessibilityLabel="Total price">$5</Text>answersgetByText('$5')andgetByLabel('Total price')), and an empty Android field with a description, whichgetByTextfinds by its hint. A value named by the label beside it (a5namedWords) no longer makesgetByText('Words')ambiguous.filter({ hasText })still reads names, text, and values.resolveExpressionfrom@e2e-dev/core/enginefollows the same rule, andshownText(node)is exported beside it for an engine that matches text itself. On the desktop engine a row or a cell reads the text inside it as its text, without the text scrolled out of it while the row itself is on screen, and a web view's heading reads its title as its text and its level from the number it reports as its value.@e2e-dev/mobileand@e2e-dev/desktopnow need@e2e-dev/coreande2e0.26.0 or newer. The web and Electron engines are released with it and read text as before.
Patch Changes
-
#2350
7e73337Thanks @okwasniewski! - AddmaxContextBytesto an agent: the bytes itscontextmay take, 1024 through 65536, default 16384. The limit was fixed at 16384 since the top-levellimitskey was removed. Acontextthat leaves the screen no room under the agent'smaxInputTokensnow fails the config load withINVALID_CONFIGinstead of failing each model call. -
#2304
342e95aThanks @okwasniewski! - Bumpagent-device,@agent-device/revyl, and@agent-device/testmuto 0.21.43,@vitest/expectto 5.1.2, and@agentclientprotocol/sdkto 2.12.0. -
#2369
187a39cThanks @okwasniewski! - The default reporter says when anagent.actstep ran live because its recording istruncated: the step's line ends withnot replayed: truncated. Such a step ran live on every run with nothing in the terminal saying why. A step'sendprogress carriescache(modeandreason) for custom reporters. -
#2492
eb5b5f9Thanks @gagarinyury! - The numeric flags ofe2e run,e2e mcp, ande2e exploretake decimal digits only. An empty value, such as--retries "$RETRIES"with the variable unset, used to read as 0 and turn retries off without a word; it is now a usage error, exit 2, as an empty--tagis.0x1and1e3are refused the same way. -
#2258
3c499a8Thanks @satya164! - Allowapp.command.envto be a function that receives the config's services. It's called after services start and before app commands start. WithdefineConfig, itsservicesargument is typed from the config'sservices. TheCommandConfig['env']type now includes the function, so code that reads it as an object of variables needs to handle a function too. -
#2330
026d857Thanks @satya164! - An entry ofsecrets,credentials,services,agents, an agent'stoolsorproviderOptions, or a target'sapp.permissionsmay beundefined. SodefineConfigkeeps the config's inferred type when one of them is written asci ? { … } : {}in a project withoutexactOptionalPropertyTypes. Before, the config fell back toE2EConfig, andtest.extendrejectedtypeof configwith an error that blamed a type annotation, orapp.permissionsfailed to type-check. Anundefinedservice, agent, tool, provider, or permission is left out. For an agent this is new:agents: { buyer: undefined }used to createbuyerwith the default options. A secret set toundefinedtakes its value fromE2E_SECRET_<NAME>, as before. A credential set toundefinednow takes its username and password fromE2E_USER_<NAME>_USERNAMEandE2E_USER_<NAME>_PASSWORD, where before it wasINVALID_CONFIG. -
#2461
eaed93cThanks @michal-e2e! - The bundled e2e skill'swriting-testsreference adds aCasessection for deriving boundary, list-mutation, filter, sort, sum, and rejection cases from requirements, and aReviewchecklist to audit setup reuse, accessible locators, row-scoped assertions, refusal invariants, persisted changes, opaque assigned values, and test-owned records before finishing a suite. -
#2441
3834ab7Thanks @okwasniewski! -agent.waitFor,agent.extract, ande2e explorerun on Claude Code or Codex through@e2e-dev/acpwith no model configured, so an agents entry that is only{ executor: claudeCode() }covers every agent step. AStepExecutorgets two optional members for this:answer(question)answers a judgment when the entry has nojudgeormodel, andextend({ system, tools })returns a copy with guidance anddefineTooltools added, which explore uses for its rules andreport_finding. An executor withoutextendis still replaced by the built-in agent in explore.createProjectToolsfrome2e/agentrunsdefineTooltools under a step's accounting.redactProviderKeysfrome2e/agentredacts only provider keys from text the run already redacted. Use your coding agent -
#2270
0cf63f1Thanks @okwasniewski! -e2e explorekeeps a finding on the step it was reported in when that step ends at its deadline while the finding's screenshot is still being saved, in the terminal output and in the report, and no longer records a finding that arrives after the exploration is over. -
#2273
74e2abeThanks @okwasniewski! - A worker that hits an uncaught error no longer gets another test while it is being stopped. Before, that test could be skipped with "worker process exited before this test started" instead of running on another worker. -
#2462
f68b4e1Thanks @okwasniewski! -e2e inithas a desktop engine for native macOS apps:npx e2e init --engine desktop, or pick it at the prompt. It writes a target withengine: desktop()andapp: { bundleId: 'com.apple.calculator' }, an example test that opens Calculator, and the@e2e-dev/desktopdependency. The CI pipeline that init writes has no job for the macOS target, which needs a Mac runner whose CI agent has the Accessibility permission. Desktop -
#2440
fd3d39dThanks @okwasniewski! -e2e inithas an Electron engine:npx e2e init --engine electron, or pick it at the prompt. It writes a target withengine: electron()andapp: { appPath: '.' }, an example test, and the@e2e-dev/electrondependency. The CI pipeline that init writes has no job for the Electron target, which needs a display: run it underxvfb-runon Linux. Electron -
#2547
1ff6915Thanks @kacperkapusciak! -e2e init --example with-electronstarts a project from the new Electron example: the greeting app every example shares, as an Electron app with three locator tests and two agent tests on@e2e-dev/electron. Example projects -
#2372
8525d2eThanks @okwasniewski! -e2e initnow registers the MCP server with the project's own package manager:pnpm exec e2e mcpin a pnpm project andyarn exec e2e mcpin a Yarn one (yarn --silent exec -- e2e mcpon Yarn 1), where it wrotenpx e2e mcpbefore.npxexits withEBADDEVENGINESbefore the MCP handshake when the project'sdevEnginespins another manager, and the client showed onlyConnection closed. Rune2e initagain to update an existing entry; it keeps the entry's other settings and, for an entry started as<launcher> e2e mcp ..., the arguments aftermcp. A project that names its manager only indevEngines, with nopackageManagerfield and no lockfile, is read as that manager's.The commands e2e prints for a Yarn project now read
yarn exec -- e2e ...:yarn e2eruns a package.json script namede2ebefore the binary.e2e initalso tells Yarn 2 or later from Yarn 1 by the lockfile when the project has no.yarnrc.ymland nopackageManagerfield, and by the Yarn that started it when the project has no lockfile yet. -
#2285
53de032Thanks @JaynouOliver! -e2e initin a workspace member with nopackageManagerfield or lockfile of its own installs with its workspace root's package manager, sonpx e2e init --installin a pnpm, Yarn, or Bun workspace no longer runsnpm installand leaves a straypackage-lock.json. When that manager is not installed, init warns and uses the invoking manager as before. -
#2271
6114483Thanks @okwasniewski! - A worker that finishes its test after an interrupt now gets the full shutdown budget to close its browser or device. Before, it was killed when the interrupt budget ran out, even mid cleanup. -
#2446
001525cThanks @samanyudas! - With thelistorlinereporter writing to a pipe or a file, as in CI, a run that prints a lot (NODE_DEBUG=*, a test that logs heavily) no longer runs about three times slower than its tests. -
#2266
2f6dcb0Thanks @okwasniewski! - The live window keeps showing a running step after another step inside it or beside it ends. Anagent.actwhoseonActionhook took a screenshot used to lose its calls and its Thinking or Acting row for the rest of the act. A step that a timed-out attempt starts while its retry runs no longer replaces the retry's step in the window. -
#2307
ae2a893Thanks @bardrop! - Themarkdownreporter and the trace pages escape an underscore at the edge of a word, so a test title or message holding__proto__or_id_shows as written instead of rendering bold or italic. -
#2355
bb31ad1Thanks @kdy1! -e2e mcp:run_codein a session attached to a held test (open_session {attach}) now has the engine's fixture (desktop,browser,device) over the held test's app, as a standalone session's code has. Before, it failed withdesktop is not defined, so an attached agent could not switch the window the test reads. The calls are the session's: they stay out of the held test's report and steps. -
#2355
bb31ad1Thanks @kdy1! -e2e mcp: an action on a node id that only an earlier observation listed now prints its test line. The action already found the node again on the newest screen by what it read as, when exactly one node there reads the same, as an agent step does, but the line looked for the id on the newest screen only and printedNo test line: not on the newest screen. The line now finds that node by the rule the action uses, which goes by role, name, test id, placeholder, and input purpose, so two controls told apart by test id are told apart in the line too. AnExecutorNodefrome2e/agentnow carries the node'stestId, as the listing shows it. -
#2378
95b13a2Thanks @michal-e2e! - Closing an MCP session frees its slot even while another session's app is still stopping. -
#2329
d03e09aThanks @okwasniewski! -open_sessionover MCP no longer lists the first screen. Its reply ends with one line naming the screen (revision, path, node count), action results report changes against that screen, andcall {tool: "observe"}lists its nodes. The server's instructions and the descriptions of its four tools are also shorter. -
#2364
b19cd0fThanks @okwasniewski! -open_session'sappnow takes every key a config target'sappdoes, such aslaunchArguments,permissions, andcommand, so a session opened withengineand no config file can launch its app with arguments. The keys are checked the way a config target's are. -
#2355
bb31ad1Thanks @kdy1! -e2e mcp: the point tools (tap_at,hover_at,drag_at,type_at,press_at,select_at) now print a test line, andtest_lineskeeps it. A point tool that acts on the listed control under its point prints that control's locator line. A bare tap printsscreen.tapAt({ x, y })in the viewport's pixels. When no line can repeat the action, the result saysNo test line:and why, and the draft keeps the step as a comment. Before, the point tools printed nothing and the draft left their steps out. -
#2177
a5e551aThanks @michal-e2e! - Adde2e merge-reportsto combine all finished shards, their local artifacts, and rerun history into one report for CI and whole-run failure reruns. -
#2267
0eee683Thanks @okwasniewski! - A token refresh that finishes aftere2e loginore2e logoutno longer writes the old login's renewed tokens back over the new login, or back after the logout. -
#2377
ceeca43Thanks @michal-e2e! - Repair a skill copy missingSKILL.mdwhen pnpm links the skill in another directory, including from a detected workspace root. -
#2277
1372f28Thanks @okwasniewski! - Fix an agent step that misses a read-only cache (the CI default) starting on a screen that had not held still. The step's first look now waits for the screen to settle, as it does with the cache off or read-write. -
#2316
1ed0f18Thanks @satya164! - Passingtypeof configfrom an annotated config such asconst config: E2EConfigtotest.extendnow fails with a type error. Write the config withas const satisfies E2EConfigordefineConfiginstead so the target types are inferred. Before, that call compiled with plainE2EConfig. The config's engine fixtures weren't added,platformwas typed asstring, and fixtures already onteststayed typed on targets where they wereundefined. A target spread from a value typed asTargetfails the same way. Passing an explicitunknownor a generic type parameter as the config type (such asfunction withAccount<C extends E2EConfig>()callingbase.extend<{}, {}, C>()) doesn't compile anymore. -
#2279
21a7ef5Thanks @okwasniewski! - Fix a cached agent step re-recording its flow when the replay ended in a scroll, the recorded end state did not show, and the model fixed it by scrolling further the same way. The entry is now evicted, as for any other repair after the replay ran in full. -
#2268
935e3f8Thanks @okwasniewski! - A host whose session launch failed, and whose engine then could not end the attempt it opened, now closes for good, as one whose session close failed already does. Its next session is refused withWORKER_PROTOCOLinstead of opening beside the leftover attempt. The cleanup failure comes back fromopenHost'shost.close(), andlaunch()'sclose()throws it. -
#2191
f5a3498Thanks @satya164! - Addservicesto the config for dependencies of the app under test, like an email API or an OAuth provider. Services are started before app commands and stopped afterward duringe2e runande2e explore. Tests access them through theservicesfixture.startupTimeoutandshutdownTimeoutcan be set on each service.servicesis now a built-in fixture name. An engine that contributes aservicesfixture fails to load, and a project fixture namedservicesreplaces the built-in one. -
#2255
d4086b5Thanks @KrzysztofMoch! - Addscreen.scrollTo(edge)andlocator.scrollTo(edge), which scroll the page or a list to its'top','bottom','left', or'right'edge, as far as it goes. On the web the screen scrolls the page, or the pane under the viewport's center when the page does not scroll; a locator scrolls its node or the nearest ancestor that scrolls. A device drags until a drag moves nothing. The engine contract gains thescrollToaction kind, outside SPI v1, which the web and mobile engines declare, so both now need@e2e-dev/coreande2e0.25.1 or newer; the desktop engine does not declare it, soscrollTothere fails withUNSUPPORTED_CAPABILITY. -
#2259
ea008c2Thanks @satya164! -e2e mcpandopenHoststart the config's services. Sessions on the same config file share them. They're available inrun_codeand theservicesfixture. -
#2269
e7d2f6aThanks @okwasniewski! - A setup step that failed, such as an app command that exits before it is ready, now leaves the live window once its error is reported, instead of staying there as still starting until the run ends. -
#2315
a423238Thanks @michal-e2e! -e2e initande2e upgradeleave alone the link pnpm 12.11 and later makes to the skill in the installede2epackage, without the "Symlink, not touching" warning.initno longer offers to replace it with a copy, and adds no copy where pnpm links the skill, in the project or at its workspace root. Both warn when a folder holds a copy and pnpm'spnpm-e2e-e2elink, which agents load as twoe2eskills. Refreshing a copy now removes a file an earlier version shipped and the installed one doesn't; files you added stay. -
#2157
d31e767Thanks @michal-e2e! - Trimskills/e2e/SKILL.mdfor progressive disclosure, default user flows toagent.act(one goal per test, with data inparams) when an agent is configured, steer coding agents to one behavior per test with checks at the end, named repeated locators,test.extendfixture cleanup intry/finally, and acting on the second item shown in list mutations, and hardenmigrate-to-e2eparity, target-routing, and per-teststaysrules. Updatee2e mcp'stest_linesto adapt its guidance across fresh drafts,open_session { test }continuations, andopen_session { attach }pause points, gatingagent.actadvice on a configured model or custom executor. -
#2312
c97f5cfThanks @okwasniewski! -test.step(title, fn)runs a function as one named step and returns what it returns. The trace page, the HTML report, and an MCP test outcome show the title with the calls made inside it nested under it, and steps nest. The list reporter shows the steps of a running test, and keeps atest.stepin its output when it failed or an agent step ran inside it. A failure summary names thetest.stepthe failed call was in. Inreport.jsonit is a step of kindstepwith the apitest.step, each step inside it carries its index asparent, and step progress carriesidentity.parentStepId; the CTRF report hasparentin a step'sextra. test.step -
#2309
9764824Thanks @michal-e2e! - The bundled e2e skill is about half its size: the shortened references keep the rules for writing, running, and debugging tests and point to the docs page that holds the full API, which ships innode_modules/e2e/docs/. -
#2276
bf1d1d9Thanks @okwasniewski! - A SIGTERM or SIGINT sent toe2e run --watchwhile theportfilter prompt is open now closes the prompt and ends the session, as Ctrl-C typed into the prompt already did. Before, the session kept waiting for an answer. Ctrl-D in the prompt, and a Ctrl-C that arrives in the same read asport(a paste), end the session too. -
#2305
bb35f33Thanks @okwasniewski! -e2e run --watch --timings <path>ignores only the timings file itself. A--timingspath that names a directory no longer hides saves under it. -
#2275
b7201fcThanks @okwasniewski! -e2e run --watch --timings <file>no longer reruns itself in a loop when the timings file sits inside a watched directory: the watcher now ignores the file the run writes, like the output and cache directories. -
#2444
f52ac52Thanks @Toraastrta! - Thetprompt ofe2e run --watchreads a title pattern the way--grepdoes./refund/imatches "Refund flow" instead of the literal text/refund/i, and the prompt refuses a pattern--greprefuses, such as/api/users, whoseusersreads as flags. The rerun banner and the nexttprompt show the pattern with its flags. -
#2280
a487e40Thanks @okwasniewski! - Fix the "only 5 turns remain" notice reaching the model twice when the provider refused the turn's request (a forced tool choice it does not take, or a request too large) and the step sent it again. -
Updated dependencies [
7e73337,114a497,73ea77e,6b24fe7,187a39c,3c499a8,73ea77e,3e95b05,18d6f5f,2b6ef91,026d857,e6a2fca,3834ab7,73ea77e,47d5063,8300436,bb31ad1,95b13a2,a5e551a,d32dc7c,f127149,72b4f07,1372f28,1ed0f18,a27c6af,21a7ef5,73ea77e,935e3f8,f5a3498,d4086b5,ea008c2,b9c5c70,c97f5cf,b70181b,a487e40]:- @e2e-dev/core@0.26.0