Repository navigation
e2e@0.25.0
Minor Changes
-
#2175
6ad8924Thanks @satya164! - Breaking: A fixture that extends another fixture, such as an override ofdevice, no longer takes its scope andautofrom that fixture. Its scope andautocome from its options, like any other fixture. -
#1998
7afe2eaThanks @okwasniewski! - Breaking:e2e mcp'srun_codenow runs JavaScript: variables, loops,try/catch, return values, andconsole.log, withscreen,app,expect,credentials,secrets, and the engine's fixture (browserordevice) in scope, the objects a test body gets. An agent reads, computes, and acts in one call. The result format changed: it shows what the code returned, then each line that ran.open_sessionlists the API the code can call.The code runs in the server's Node process with a test file's authority, so the checks
run_codeapplied to its statements are gone: a secretfillis no longer limited to the fieldstype_secretallows, a locator found by part of a text is no longer refused in a project with secrets, and reads return the real text. The result still shows<secret:name>where a configured secret value is. Lines needawait: without it they start together and no longer run in order. -
#2223
5711573Thanks @okwasniewski! - Breaking: Therequirestest option is removed; scope a test to targets withplatformsinstead.{ requires: ['browser'] }becomes{ platforms: ['web'] }, and{ requires: ['device'] }becomes{ platforms: ['ios', 'android'] }. A test, group, or setup that still setsrequiresfails at collection with a message namingplatforms. TheCapabilitytype and thecapability-unavailableskip cause in the report are gone with it, ande2e initwith both engines now writesplatformsinto its example tests. -
#1936
eddf577Thanks @KrzysztofMoch! - Breaking: withoutlist,dot, or another interactive reporter, what your code prints goes to stderr where it went to stdout before. So does what the config prints while it loads. Stdout now holds only what a reporter prints there, and besidejsononly the JSON report.Deprecated: the
planrun event. Readcollected, which follows it with the sametotalandfiles.planis removed no earlier than April 1, 2027.The built-in reporters are built on the public
Reportercontract, so a reporter of your own can do everything they do. Ids such as'list'and'junit'work as before; to pass options, call the factory frome2e/reporters:list(),dot(),json(),junit({ outputFile }), andmarkdown({ outputFile }).--reporterkeeps the options of a built-in the config configured, and--reporter list,jsonworks likedot,json:listprints to stderr besidejson.A reporter has one live hook,
onEvent, and three for the finished run:reportFilesreturns files the runner writes atomically,onRunFinisheduploads or notifies, andonSummary(rows, run)prints, redacted, such as every reporter's summary rows or a document on stdout.interactive: truemarks the one reporter that shows the run in the terminal, aslistanddotdo; the runner then prints nothing itself.New in the event stream:
collectedlists every test of the run intestsbefore the first one starts, withrepeatEach.- A step's
startprogress hassource, the test file line that called it. pausedandresumedsay when a test waits at a--stepprompt orscreen.pause().outputevents include what the runner process prints, with notarget.
Every reporter gets the same event object, with its own fields frozen.
--stepworks with the json reporter in a terminal. After a second Ctrl-C,reportFileshas 5 seconds left.@e2e-dev/html-reporterwritesreport.htmlthroughreportFilesand needse2e0.24.1 or later. -
#2149
7838198Thanks @michal-e2e! - Breaking: Tests get a built-inrequestfixture for HTTP calls.await request.post('/api/orders', { json: { sku: 'A1' } })sends a request to a path on the app URL or to an absolute URL, shows in the report as a step, and stops at itstimeoutor the action timeout. It returns aWebResponse, the typebrowser.waitForResponseandroute.fetch()return, which@e2e-dev/coreande2enow export too. It does not send the browser's cookies. A project fixture already namedrequestnow extends the built-in one, and one declared with its own type throughtest.extend<{ request: ... }>({ request: ... })no longer compiles, so rename it. An engine can no longer contribute a fixture namedrequest. -
#1887
198d25fThanks @samanyudas! - Breaking:report-1reports can now contain theskip.causevaluefixme.
Update pinned copies ofschema/report-v1.schema.jsonfrom this release and
handlefixmein exhaustive skip-cause checks. The report'sschemaVersion
staysreport-1.The new
test.fixmeAPI skips tests at registration or from inside their
bodies. The report gives the reason asfixme, orfixme: <reason>when you
give a non-blank reason. -
#2218
d6a7bbcThanks @KrzysztofMoch! - Breaking:report-1reports can now contain theskip.causevaluetodo.
Update pinned copies ofschema/report-v1.schema.jsonfrom this release and
handletodoin exhaustive skip-cause checks. The report'sschemaVersion
staysreport-1.The new
test.todo(title)registers an unfinished test with no body. It never
runs and is reported as skipped with the cause and reasontodo.
Patch Changes
-
#2243
42207c7Thanks @okwasniewski! - A test body or hook that kept running past its timeout can no longer act on the app during its own teardown or the next test. Its engine calls fail withCANCELLED, also when it makes them through a worker fixture. -
#1918
9081e14Thanks @imranbarbhuiya! - Acceptapp.permissions: 'all'to grant every permission the target's engine can grant before each fresh launch: on Android every runtime permission the app declares, on an iOS simulator every privacy service its runtime can set, with locationalways(the simulator refuses notifications, so accept that prompt withdevice.alert('accept')), and on the web every permission the browser grants.device.openApp(app, { relaunch: true, permissions: 'all' })does the same for one launch.An engine opts in with
grantsAllPermissions: trueand receivesEngineAppInfo.allPermissions: true, soEngineAppInfo.permissionsstays a map of names. For an engine that does not declare it, including a@e2e-dev/webor@e2e-dev/mobilereleased before this change, config load refuses'all'withINVALID_CONFIG. -
#2257
3f65162Thanks @satya164! - Bring backdefineConfigine2e. It returns the config as it is, keeps its inferred type fortest.extend, and makes an unknown top-level key a type error, assatisfies E2EConfigdoes. -
#2185
2f07acdThanks @okwasniewski! - Bumpoxc-parser,oxc-transform, and@oxc-project/runtimeto 0.160.0, and@agentclientprotocol/sdkto 2.9.1. -
#2096
634d060Thanks @Wali05! -e2e cache statssizes just under 1 MiB now read1.0 MiBinstead of1024.0 KiB. -
#1971
e20bfebThanks @KrzysztofMoch! - The e2e skill now says the Claude Code plugin does not register the MCP server, and tells the agent to register it in the project there. The Codex and Cursor plugins still include it. -
#2137
425cdb2Thanks @michal-e2e! - Add thectrfreporter:--reporter ctrforreporters: ['ctrf']writes<output>/ctrf.jsonin the Common Test Report Format 0.3.0, giving CTRF tools flaky flags, earlier attempts, steps, and attachments directly. Run-level errors go inresults.errorsinstead of a syntheticrunsuite and never count as tests, so a check built on failed tests alone stays green for them: keep e2e's exit code as the CI gate. -
#1925
c30354fThanks @Vishwas1345! - Addtest.describe.fail(title, fn)and thefailoption ondescribe, which mark every test in the group expected to fail. -
#2244
769a200Thanks @KrzysztofMoch! - Addtest.describe.only(title, fn)and theonlyoption ondescribe, which focus every test in the group the waytest.onlyfocuses one. As in Playwright, atest.onlyordescribe.onlyinside a focused group narrows the focus to it. A skipped test in a focused group keeps its own skip cause, and CI rejects a focused group withONLY_IN_CI. -
#2219
c8df611Thanks @KrzysztofMoch! - Addexpect(locator).toBeEmpty(), which waits for a node the engine reports empty. The web engine follows Playwright: aninputortextareais empty when its value is'', and any other element when its trimmed text content is, hidden text included. The mobile engine reads a text field by its value and any other node by the text and values in its subtree; on iOS, a field Flutter or Compose Multiplatform draws reads as a plain view, so its placeholder counts. Engines report the newemptynode state on located nodes only, so agent observations are unchanged. The desktop engine and engine releases from before this one report no such state, sotoBeEmptyfails there either way. On a secure field it isPOLICY_DENIED. -
#2195
782a7ceThanks @michal-e2e! -expect(response).toBeOK()passes when a response's status is from 200 to 299. It takes whatrequest,browser.waitForResponse, androute.fetch()return, and works with.not,expect.soft, andexpect.poll. A failure names the status and the origin and path of the response's URL, never its credentials, query, or fragment. -
#2166
b06b349Thanks @kdy1! - The patches ine2e explore --changed-since's change brief now share its budget, shortest first, so a long patch early in path order no longer leaves the later files without one. -
#2166
b06b349Thanks @kdy1! -e2e explore --changed-sincenow gives the planner the pull request's title and description in a GitHub Actionspull_requestjob or a GitLab merge request pipeline, redacted and fenced like the commit messages, and never used to decide a skip. -
#2095
58f3d45Thanks @KrzysztofMoch! -toHaveScreenshotdoes less work per capture. A largemaskbox paints about 20 times faster, a capture identical to the stored screenshot compares about 5 times faster, and the diff image is drawn only for the failure that attaches it, not for every capture while it waits for a match. An engine protocol connection that has read everything it received no longer keeps the last message in memory until the next one arrives. -
#2147
1501cf1Thanks @okwasniewski! -app.urltakes afile:URL: one file on this machine, which a browser the engine launches opens with no server, such aspathToFileURL('dist/index.html').href. A host or a directory isINVALID_APP_URL. On such a target,app.open,browser.goto, and the agent'snavigatetake afile:URL only for a file in that file's directory or below it, with symbolic links resolved; a file outside it and any directory stayPOLICY_DENIED, and so does everyfile:URL on a target whose app is not a file. When a link or a script in the page takes the browser outside that directory, no agent step, trace, or failure report is given the screen there, and the agent is sent no screenshot of a file app at all:agent.assertwithvision: truejudges from the tree,vision: 'only'isPOLICY_DENIED, and neitheragent.assertnor a failure keeps a screenshot. Avideoyou turn on still records wherever the browser goes. A file has no site, origin, or readiness poll: frames that load another document stay out of observations,environmentdefaults to'test', anapp.commandbeside it needsapp.readyUrl, and aweb()target with a browser provider,connect,headers, orbasicAuthrefuses it. An engine opens a file app only when it declaresfileApps: trueon@e2e-dev/core/engine, whichweb()does; for any other engine a fileapp.urlfails at config load, andvalidateAppis told withfileApp: true.mobile()anddesktop()do not declare it. -
#2175
6ad8924Thanks @satya164! - An engine fixture is nowundefinedon a target whose engine doesn't have it, so a test withdevicecan be run on web. Before, the run failed withCOLLECTION_ERROR. The fixtures of every target are typed with the config's type as the third type argument:test.extend<{}, {}, typeof config>(), withas const satisfies E2EConfigon the config object. Withplatformson a test, its fixtures are typed for the targets that run it. -
#2078
13c3471Thanks @DivyamTalwar! - Validate only full 40- or 64-character Git commit hashes when reporting CI provenance. -
#2144
b324330Thanks @okwasniewski! -e2e guidematches the project's e2e version.npx e2e guidedownloads the latest release when the project's dependencies are not installed yet, and printed that release's guide with nothing saying so. The guide's version now goes to stderr on every run (Guide for e2e 0.24.0), stdout is unchanged. When package.json declares a version or range the running CLI is outside of and no installed copy is found, that line names both versions and the commands that print the matching guide (install first, ornpx e2e@0.23.0 guide). For a range, it says that installing gives the version the lockfile pins. Ranges are read as npm reads them (^0.23,0.23.x,>= 0.23.0,||, hyphen ranges). When another version is installed than the CLI that runs, as with a global install,guideprints the installed version's guide and topics, andguide --helplists those topics. It also says when the installed copy is outside the range package.json declares. With different specs in several sections of package.json, the one the project's package manager installs from counts. -
#2148
9928641Thanks @okwasniewski! - A test or hook declared by a module a test file imports now reaches every test file and every retry. A worker imports a test file again after a failed test and for each file that shares the module, and the module registered its tests and hooks for the first import only: a second file that imported the same helper ran without the helper'sbeforeEach, and a helper's test ended withdisappeared on re-import. Such a module, and each module that imports it, is now evaluated again with each test file that imports it. This holds for ES modules of the project on Node.js: a CommonJS module, a package fromnode_modules, and Bun keep one instance, as before. -
#1883
c330373Thanks @WellDunDun! - Accept in-memory file payloads inlocator.setInputFiles({ name, mimeType, buffer }), including payload arrays. -
#2142
5ab9121Thanks @okwasniewski! -e2e initadds a line toAGENTS.mdandCLAUDE.mdthat points coding agents at the installed skill, creating the file when it is missing. A file that already names the skill stays as it is, and--skills nonewrites neither. -
#2104
02cf99bThanks @okwasniewski! -e2e init my-app --examplewithout a name lists the example apps and lets you pick one. -
#2085
64d5be8Thanks @kdy1! -e2e initnow detects a Next.js app (nextindependenciesordevDependencies) and writes a web target that starts it, sonpm run test:e2epasses right after init with no edits. The target runs thedevscript with the project's package manager andreuseExisting: true, onhttp://localhost:<port>, with the port from thedevscript's--portor-pflag, else 3000. When the app hasbuildandstartscripts on the same port, CI runsstarton the production build instead, and a pipeline from--cirunsbuildbefore the tests. Init prints the commands and the URL it used, and no longer asks forAPP_URLin such a project. A Next.js app with nodevscript, or with a port that is not a fixed number or that another command in the script sets, gets the same target as before and a warning. A project withoutnextgets the same files as before. -
#2141
70348f4Thanks @okwasniewski! -e2e initis safe to run again on an initialized project. It reads the existing config's imports and adds the packagespackage.jsonlacks, at the ranges a new project gets:@e2e-dev/weband@e2e-dev/mobilewith@e2e-dev/core,aiwithzod, and a gateway's provider packages. Before, a re-run addede2ealone. Any other package the config imports is yours to add,zodon its own included. Whenpackage.jsondeclares anothere2ethan the one runninginit, such as an older pinned version undernpx e2e@latest init, it names the missing packages and adds none, since its ranges may not fit that version. It also writes no example test beside an existing config: a re-run used to restore a deletedtests/example.e2e.tsas the engine-lessfetchexample. TheNO_TESTSmessage of a project with no test file no longer sayse2e initwrites one. -
#2103
2b3bab0Thanks @KrzysztofMoch! -e2e initrenames the no-model option from None to Skip for now, says no API key is needed during setup, shortens the Vercel AI Gateway and OpenRouter hints to note they read from your environment, and labels OpenAI-compatible endpoints asOpenAI-compatible / local endpoint.--gateway noneis unchanged. -
#1903
11de64bThanks @luke-h1! -app.launchArgumentsanddevice.openApp({ launchArguments })also take an object of argument name to string, number, boolean, or list of strings, such as{ AppleLanguages: ['fr'], AppleLocale: 'fr_FR' }. Write a name without its leading dash:{ AppleLocale: 'fr_FR' }, not{ '-AppleLocale': 'fr_FR' }. A dashed name inapp.launchArgumentsfails at config load withINVALID_CONFIG, and one passed todevice.openAppfails that call withINVALID_ARGUMENT. On iOS,mobile()sends each entry as-name value, and so doesdesktop()on macOS. On Android, each entry is anam startextra of the value's type:--es,--ez,--ei(--elbeyond Java'sint),--ef, or--esafor a list. An Android object fails when it holds one of Apple's arguments, such asAppleLocale, or a list thatam startwould change: an empty list, or an item that is empty, holds a comma, or ends in a backslash. A list of strings still goes to the launch command as given.EngineAppInfo.launchArgumentsstays a list of strings. An engine that declareslaunchArgumentValues: truereceives an object inEngineAppInfo.launchArgumentValues; for any other engine an object fails at config load.@e2e-dev/core/engineexports the types, the shape checkcheckLaunchArguments, andappleUserDefaults, which spells an object as-name valuearguments for an iOS or macOS app. -
#2008
5b61f22Thanks @michal-e2e! - Without asessionoption, twomobile()hosts fromlaunch(), or a host and the test's own device, no longer drive one simulator under the same agent-device session. Each host hands its engine a random token ashostIdinprepare,init, andfinish, and the mobile engine names the host's sessione2e-<target>-<token>-<slot>.@e2e-dev/mobilenow needs@e2e-dev/core0.24.1 or newer, the first release that sendshostId. A host that finds no free device now fails instead of sharing one. A host that ends withoutclose()(process.exit(), a kill), or whose session fails to close, leaves its device held until you runagent-device close --session <name>; closing the host now fails with an error that names the session when the close fails. A host's artifact folders underartifactsDirare now namedcore/host-<token>-<attempt id>, so an engine platform that is a secret's value no longer reaches a path on disk. -
#2236
511a01aThanks @kdy1! - A test that awaitslaunch()orhost.newSession()and catches its error now passes. Before, the failed call still failed the test withSTEP_NOT_AWAITED("putawaitin front of it"), for example when the test opened a fresh session afternewSession({ state })failed withSESSION_EXPIRED.launch()now checks its options before it opens, and a failedlaunch()ornewSession()no longer counts as a call still running when the test ends. A call still running when the test ends still fails the test withSTEP_NOT_AWAITED. One effect: a call that fails and is caught withoutawait, such aslaunch(web(), { bogus: true }).catch(() => {}), failed the test before and now passes. -
#1951
3c2f92cThanks @BloggerBust! ---reporter line,reporters: ['line'], orline()frome2e/reportersshows the run on one row. On a terminal the row names the test that started or finished last; piped or in CI, each test prints its row as it finishes. A failed test prints its failure details when its result arrives.A setup test that is skipped no longer counts in the
Teststotal or in thefilesof thecollectedevent: it never gets a result. -
#1919
e88153bThanks @WellDunDun! - Addlocator.blur()to remove focus from a web element. -
#2138
a1853f5Thanks @okwasniewski! -locator.screenshot(label?)captures the one match and returns the file's path, asapp.screenshot()does for the screen. It scrolls the match into view, waits until its box and the viewport hold still across the capture, and cuts the screenshot to that box, with the same masking and pixel density. A match larger than the viewport keeps the part inside it. It works on every engine whose screenshot is a PNG of the viewport, which the web, mobile, and desktop engines' are; a custom engine that writes another format getsUNSUPPORTED_CAPABILITY. -
#2074
f3f32fdThanks @DivyamTalwar! - Ignore directories named after package-manager lockfiles when detecting a project's package manager. -
#2096
634d060Thanks @Wali05! - Durations just under a unit boundary in the markdown report, trace pages, and failure details now read1.0sor1m 0sinstead of1000msor60.0s. -
#1743
c371f78Thanks @abhinavapasok! - Themarkdownreporter and the trace pages escape&, so a test title or message holding entity text such as©or<b>shows as written instead of rendering as©or<b>. -
#1972
25eb2f8Thanks @satya164! - Attach to a test held atscreen.pause()ore2e run --stepwith
open_session {attach: "k3f9"}ine2e mcp. Use the ID from the pause
header. The attached session has the same tools as a normal session on
that target. If the run already records the attempt,start_recording
returns an error with the run's video directory.close_sessiondetaches
and leaves the test held. Resume continues the test right away while any
attached recording saves in the background. -
#1998
7afe2eaThanks @okwasniewski! -e2e mcp'sopen_sessiontakespath, to open on one page of the app instead of its root.calltakes a tool's arguments besidetoolas well as inargs. The opening catalog lists the single actions by signature on one line;toolsstill describes each. -
#1998
7afe2eaThanks @okwasniewski! -e2e mcpnow prints a test line for a control with no name, label, placeholder, text, or test id:getByRole("spinbutton")when it is the only one of its role, with a comment, else narrowed under a row or by position like other twins. Before, the action answeredNo test line. -
#2146
8ae3ab4Thanks @okwasniewski! - A step that calls the model with no key configured now says so:MODEL_PROVIDER_FAILED: the model has no credential: AI_GATEWAY_API_KEY is not set, instead of the provider'sUnauthenticated requesttext and a hint that the provider rejected a credential. It applies when a provider package finds no API key in its variable, or the Vercel AI Gateway finds neither a key nor an OIDC token. The step still fails as before (exit 3), and recordedagent.actsteps and tests with no agent call still run.e2e doctorwarns when a Vercel AI Gateway or OpenRouter model has no key variable set, and its last line counts the warnings. -
#2014
7a8e546Thanks @samanyudas! - On iOS and Android, when a secure field on screen has no bounds to mask,toHaveScreenshotnow fails at once withPOLICY_DENIEDinstead of after its timeout,app.screenshot()fails withPOLICY_DENIEDinstead ofENGINE_FAILURE, and an agent step reportsMASKING_UNPROVENfor its screenshot. -
#2139
bf81c8aThanks @okwasniewski! - The npmhomepageofe2eis now https://e2e.com, and@e2e-dev/core,@e2e-dev/web, and@e2e-dev/mobilepoint at their docs pages on e2e.com. They pointed at the GitHub README, sonpm view e2eshowed no link to the site or the docs. -
#2148
9928641Thanks @okwasniewski! - Tests of one file can run at the same time on separate workers.describe(title, { parallel: true }, fn)does it for a group,describe.configure({ parallel: true })at the top of a file for the file, andfullyParallel: truein the config, on a target, or--fully-parallelfor every file. A serial group still runs as one unit, and{ parallel: false }keeps a group or a file in order. A worker imports the file one time for the tests it runs apart, so they share the file's state on that worker and not across workers. Tests withbeforeAllorafterAllhooks around them run in batches, at most as many as the target has workers for each agent, and each batch runs the hooks one time. The repeats of a test run one after another on one worker. With one worker, the default in CI, they still run one at a time. Without any of these, a file's tests run in order on one worker, as before. -
#2062
1ece4dfThanks @michal-e2e! - Provider keys loaded by a test hook are redacted in subsequent steps, andcodex()registers the API key in a custom sign-in request it forwards. The report also redacts model names from older cache recordings. A code frame omits its caret when the location falls inside a redacted value.A model provider or coding agent that quotes your API key back, such as a proxy that puts the rejected key in its error, can no longer put it in the terminal,
report.json,summary.md, or a trace page, and the run no longer sends it to the model in the screen, a tool result, the model's own prose, or asystemtext a config or an executor writes. The run redacts the keys of 20 to 8,192 characters (a value no pattern can be built for is left alone) inOPENAI_API_KEY,ANTHROPIC_API_KEY,AI_GATEWAY_API_KEY,OPENROUTER_API_KEY, and the other model provider variables as<secret:NAME>, the tokens of a subscription login it sends, and the logincodex()finds inCODEX_HOME/auth.json.e2e/agentexportsregisterProviderKey,registerProviderKeys,redactSecrets, andredactStepTextfor an executor, or a config that passes a key in code. A config that loads a key and then fails quoting it prints its marker too, ine2e run,e2e list,e2e doctor,e2e cache,e2e report,e2e init, ande2e mcp, andlist()andexplore()frome2e/runnernow reject asopenHostdoes, redacted and without the originalcause. A key given as a model id is redacted frome2e doctor, the run header,ai-trace.json, and the model a step records. Errors with codeMODEL_PROVIDER_FAILED,CONTEXT_OVERFLOW, orMODEL_OUTPUT_INVALIDhave their text redacted and omit the raw cause when caught from a step. A provider-key-only scan rewrites whole keys in UTF-8 text downloads up to 16 MiB and leaves their redaction labelincomplete. A provider key is never added to a session's saved secrets.e2e run,e2e mcp, andopenHostnow warn whenNODE_DEBUGnameschild_processornet, which make Node print environments and request headers, where only e2e's own output is redacted, for its secrets and these keys, andacp()no longer passesNODE_DEBUGto the agents it starts.@e2e-dev/acpnow needse2e0.25.0 or newer. -
#2093
bccc638Thanks @michal-e2e! - A replay no longer acts on a same-named twin when the control the step recorded is gone: one of two "Set up" buttons left, or a button whose unique test id disappeared while another with its role and name is on screen. This covers taps and drags on the control, a recorded screen point inside it, and a scroll on a list (notscrollUntil, which records no count for its list). The step hands off to the agent, or fails withREPLAY_STALEunder--strict-cache, where it used to complete on the wrong control, and the report now says the target "cannot be told from its look-alikes". A step whose twin really did go away, such as a second "Close" or one of two controls sharing a test id, now hands off too, after up to about 15 seconds of looking for the missing control, since a form may still be rendering it, and is recorded again the next time it passes with a cache it may write. A step recorded by a unique test id before this change keeps replaying as before until it is recorded again. An action an executor took from the same look as an earlier action of the step also replays as before once it is recorded by this version; one recorded earlier hands off once, or fails withREPLAY_STALEunder--strict-cache, until it is recorded again. -
#2013
7e32054Thanks @satya164! - Addedexpect(fn).toPass()for retrying a block of assertions, with.notandexpect.softforms.expect.pollaccepts a list ofintervals, and its default pauses are now[100, 250, 500, 1000]ms. Defaults fortoPasscan be set withtoPassin the config.Deprecated: the
intervaloption ofexpect.poll. Passintervals: [<ms>]. It will be removed no earlier than April 1, 2027. -
#2087
81cd8b7Thanks @imranbarbhuiya! -e2e run --target web --device <name>names only the--targetselection in the run header before it fails withUNSUPPORTED_CAPABILITY, instead of every configured target. The--devicedocs now say which ids it takes (a simulator UDID or an emulator serial; any other value is a device name) and that it applies to the one selected target that can take a device while the other selected targets still run as configured. -
#2002
71a2b79Thanks @imranbarbhuiya! - Adde2e run --device <name>to run the selected mobile target on another simulator, emulator, or phone for one run, by name or id, over itsdeviceoption:e2e run --target ios --device 'iPad Pro 13-inch (M5)'. With several mobile targets selected, pick one with--target. Aweb()target, or a target whose devices a provider leases, refuses the flag. An engine opts in withselectsDevice: trueand reads the name fromEnginePrepareInfo.device. -
#1963
ed48b0bThanks @rentezzy! -screen.tapAt,screen.doubleTapAt, andscreen.swipe({ from, to })take percentages of the viewport as well as pixels:screen.tapAt({ x: '50%', y: '50%' }). Each coordinate is a number of CSS pixels or a string from'0%'through'100%', and the two may mix. A percentage reads the screen once for the viewport size. The newScreenPointandScreenCoordinatetypes are exported frome2eand@e2e-dev/core. -
#2151
29a7559Thanks @michal-e2e! - A sharded run's report now records its shard asrun.shard { index, total }, and marks each test this invocation's cut gave to another shard withskip.otherShard: true. A--last-failedrerun writesreport-with-reruns.jsonbeside its report: the first run and every rerun since as one report. It also hands its reporters every earlier run folded together aslastRun, throughfoldLastRun, now exported frome2e. The@e2e-dev/githubcomment after a second rerun no longer shows the first pass's passing tests as not run, and a second rerun keeps the first run's evidence on disk. The fold drops deleted tests and explains failures of out-of-shard consumers without counting them in the shard's totals.@e2e-dev/githubnow needse2e0.25.0 or later. -
#2181
95f80b8Thanks @KrzysztofMoch! - The bundled e2e skill rewords two lines about the replay cache and retries on CI that the Claude plugin directory read as a package manager setting. -
#1952
d88aa99Thanks @kdy1! - The bundled e2e skill now gives the Next.js setup in one place:next devlocally andnext startin CI, the route announcer thatgetByRole('alert')also matches, a webpack watcher that reads.e2e/, and thecreate-next-appstarter. It links the new Next.js docs page. -
#2149
7838198Thanks @michal-e2e! - A step whose label is longer thanreport.jsonallows, such asapp.open()with a very long path, now has its label cut to 8,192 characters inreport.json, so the report stays valid. -
#2015
23aa697Thanks @satya164! ---stepandscreen.pause()keys now appear below the live summary, withsfor the screen andlfor the app log.
Time when every running worker is paused is excluded from the terminal'sDurationrow and the report's newrun.durationMsfield. -
#1979
012dd22Thanks @przytrzask! - Addcounttolocator.tap()andclick():tap({ count: 3 })taps three times in a row. In a browser the clicks arrive as one multi-click, so a triple click selects a paragraph; on a device they arecountpresses at thedoubleTapcadence, at most 200.count: 2is the same action asdoubleTap(). Three or more go through the newmultiTapengine action, which the browser and mobile engines declare; an engine without it fails withUNSUPPORTED_CAPABILITY. -
#1921
a5d1788Thanks @imranbarbhuiya! - Addtest.setTimeout(timeout)to change the running test's timeout from its body or abeforeEachhook, or abeforeAllhook's own timeout. -
#1982
b8809f9Thanks @przytrzask! - Addtest.slow()andtest.slow(condition, reason)to triple the running test's timeout from its body or abeforeEachhook, or abeforeAllhook's own timeout, as Playwright'stest.slow()does. -
#1962
07575c9Thanks @bardrop! - Addexpect(locator).toBeEditable(), which waits for an enabled control that is not read-only.{ editable: false }waits for a disabled or read-only one. -
#2011
94fd9a6Thanks @KrzysztofMoch! - Addexpect(locator).toBeInViewport({ ratio }), which waits for part of the
match, or that share of its box, to be inside the viewport without scrolling.
No match counts as outside, so.notaccepts zero matches. The web engine
measures with the page'sIntersectionObserver, matching Playwright, so
scrolling andoverflowancestors and frames clip the box. The mobile engine
reports only whether the node is on screen, because a device reports bounds
already clipped, soratio > 0there fails withUNSUPPORTED_CAPABILITY
once the node is on screen.
Engines implement the optionalviewportIntersectionmethod for the new
viewport-intersectioncapability. -
Updated dependencies [
42207c7,e939a65,225ea85,f4fb7c7,9081e14,3e7d19d,634d060,c8df611,782a7ce,58f3d45,1501cf1,6ad8924,c330373,4153820,11de64b,5b61f22,511a01a,3fec41f,087d8fe,e88153b,956f741,a1853f5,991b522,25eb2f8,8ae3ab4,7a8e546,bf81c8a,160cbfe,77c5e53,9928641,202f121,1ece4df,07575c9,b6e65ae,5711573,bccc638,eddf577,7838198,7e32054,71a2b79,ed48b0b,4d9e12d,29a7559,7838198,23aa697,012dd22,198d25f,a5d1788,b8809f9,d6a7bbc,94fd9a6]:- @e2e-dev/core@0.25.0