Skip to content

e2e@0.25.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 18:13
· 126 commits to main since this release
1642ef2

Minor Changes

  • #2175 6ad8924 Thanks @satya164! - Breaking: A fixture that extends another fixture, such as an override of device, no longer takes its scope and auto from that fixture. Its scope and auto come from its options, like any other fixture.

  • #1998 7afe2ea Thanks @okwasniewski! - Breaking: e2e mcp's run_code now runs JavaScript: variables, loops, try/catch, return values, and console.log, with screen, app, expect, credentials, secrets, and the engine's fixture (browser or device) 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_session lists 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_code applied to its statements are gone: a secret fill is no longer limited to the fields type_secret allows, 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 need await: without it they start together and no longer run in order.

  • #2223 5711573 Thanks @okwasniewski! - Breaking: The requires test option is removed; scope a test to targets with platforms instead. { requires: ['browser'] } becomes { platforms: ['web'] }, and { requires: ['device'] } becomes { platforms: ['ios', 'android'] }. A test, group, or setup that still sets requires fails at collection with a message naming platforms. The Capability type and the capability-unavailable skip cause in the report are gone with it, and e2e init with both engines now writes platforms into its example tests.

  • #1936 eddf577 Thanks @KrzysztofMoch! - Breaking: without list, 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 beside json only the JSON report.

    Deprecated: the plan run event. Read collected, which follows it with the same total and files. plan is removed no earlier than April 1, 2027.

    The built-in reporters are built on the public Reporter contract, 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 from e2e/reporters: list(), dot(), json(), junit({ outputFile }), and markdown({ outputFile }). --reporter keeps the options of a built-in the config configured, and --reporter list,json works like dot,json: list prints to stderr beside json.

    A reporter has one live hook, onEvent, and three for the finished run: reportFiles returns files the runner writes atomically, onRunFinished uploads or notifies, and onSummary(rows, run) prints, redacted, such as every reporter's summary rows or a document on stdout. interactive: true marks the one reporter that shows the run in the terminal, as list and dot do; the runner then prints nothing itself.

    New in the event stream:

    • collected lists every test of the run in tests before the first one starts, with repeatEach.
    • A step's start progress has source, the test file line that called it.
    • paused and resumed say when a test waits at a --step prompt or screen.pause().
    • output events include what the runner process prints, with no target.

    Every reporter gets the same event object, with its own fields frozen.

    --step works with the json reporter in a terminal. After a second Ctrl-C, reportFiles has 5 seconds left.

    @e2e-dev/html-reporter writes report.html through reportFiles and needs e2e 0.24.1 or later.

  • #2149 7838198 Thanks @michal-e2e! - Breaking: Tests get a built-in request fixture 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 its timeout or the action timeout. It returns a WebResponse, the type browser.waitForResponse and route.fetch() return, which @e2e-dev/core and e2e now export too. It does not send the browser's cookies. A project fixture already named request now extends the built-in one, and one declared with its own type through test.extend<{ request: ... }>({ request: ... }) no longer compiles, so rename it. An engine can no longer contribute a fixture named request.

  • #1887 198d25f Thanks @samanyudas! - Breaking: report-1 reports can now contain the skip.cause value fixme.
    Update pinned copies of schema/report-v1.schema.json from this release and
    handle fixme in exhaustive skip-cause checks. The report's schemaVersion
    stays report-1.

    The new test.fixme API skips tests at registration or from inside their
    bodies. The report gives the reason as fixme, or fixme: <reason> when you
    give a non-blank reason.

  • #2218 d6a7bbc Thanks @KrzysztofMoch! - Breaking: report-1 reports can now contain the skip.cause value todo.
    Update pinned copies of schema/report-v1.schema.json from this release and
    handle todo in exhaustive skip-cause checks. The report's schemaVersion
    stays report-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 reason todo.

Patch Changes

  • #2243 42207c7 Thanks @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 with CANCELLED, also when it makes them through a worker fixture.

  • #1918 9081e14 Thanks @imranbarbhuiya! - Accept app.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 location always (the simulator refuses notifications, so accept that prompt with device.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: true and receives EngineAppInfo.allPermissions: true, so EngineAppInfo.permissions stays a map of names. For an engine that does not declare it, including a @e2e-dev/web or @e2e-dev/mobile released before this change, config load refuses 'all' with INVALID_CONFIG.

  • #2257 3f65162 Thanks @satya164! - Bring back defineConfig in e2e. It returns the config as it is, keeps its inferred type for test.extend, and makes an unknown top-level key a type error, as satisfies E2EConfig does.

  • #2185 2f07acd Thanks @okwasniewski! - Bump oxc-parser, oxc-transform, and @oxc-project/runtime to 0.160.0, and @agentclientprotocol/sdk to 2.9.1.

  • #2096 634d060 Thanks @Wali05! - e2e cache stats sizes just under 1 MiB now read 1.0 MiB instead of 1024.0 KiB.

  • #1971 e20bfeb Thanks @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 425cdb2 Thanks @michal-e2e! - Add the ctrf reporter: --reporter ctrf or reporters: ['ctrf'] writes <output>/ctrf.json in the Common Test Report Format 0.3.0, giving CTRF tools flaky flags, earlier attempts, steps, and attachments directly. Run-level errors go in results.errors instead of a synthetic run suite 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 c30354f Thanks @Vishwas1345! - Add test.describe.fail(title, fn) and the fail option on describe, which mark every test in the group expected to fail.

  • #2244 769a200 Thanks @KrzysztofMoch! - Add test.describe.only(title, fn) and the only option on describe, which focus every test in the group the way test.only focuses one. As in Playwright, a test.only or describe.only inside 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 with ONLY_IN_CI.

  • #2219 c8df611 Thanks @KrzysztofMoch! - Add expect(locator).toBeEmpty(), which waits for a node the engine reports empty. The web engine follows Playwright: an input or textarea is 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 new empty node state on located nodes only, so agent observations are unchanged. The desktop engine and engine releases from before this one report no such state, so toBeEmpty fails there either way. On a secure field it is POLICY_DENIED.

  • #2195 782a7ce Thanks @michal-e2e! - expect(response).toBeOK() passes when a response's status is from 200 to 299. It takes what request, browser.waitForResponse, and route.fetch() return, and works with .not, expect.soft, and expect.poll. A failure names the status and the origin and path of the response's URL, never its credentials, query, or fragment.

  • #2166 b06b349 Thanks @kdy1! - The patches in e2e 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 b06b349 Thanks @kdy1! - e2e explore --changed-since now gives the planner the pull request's title and description in a GitHub Actions pull_request job or a GitLab merge request pipeline, redacted and fenced like the commit messages, and never used to decide a skip.

  • #2095 58f3d45 Thanks @KrzysztofMoch! - toHaveScreenshot does less work per capture. A large mask box 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 1501cf1 Thanks @okwasniewski! - app.url takes a file: URL: one file on this machine, which a browser the engine launches opens with no server, such as pathToFileURL('dist/index.html').href. A host or a directory is INVALID_APP_URL. On such a target, app.open, browser.goto, and the agent's navigate take a file: URL only for a file in that file's directory or below it, with symbolic links resolved; a file outside it and any directory stay POLICY_DENIED, and so does every file: 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.assert with vision: true judges from the tree, vision: 'only' is POLICY_DENIED, and neither agent.assert nor a failure keeps a screenshot. A video you 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, environment defaults to 'test', an app.command beside it needs app.readyUrl, and a web() target with a browser provider, connect, headers, or basicAuth refuses it. An engine opens a file app only when it declares fileApps: true on @e2e-dev/core/engine, which web() does; for any other engine a file app.url fails at config load, and validateApp is told with fileApp: true. mobile() and desktop() do not declare it.

  • #2175 6ad8924 Thanks @satya164! - An engine fixture is now undefined on a target whose engine doesn't have it, so a test with device can be run on web. Before, the run failed with COLLECTION_ERROR. The fixtures of every target are typed with the config's type as the third type argument: test.extend<{}, {}, typeof config>(), with as const satisfies E2EConfig on the config object. With platforms on a test, its fixtures are typed for the targets that run it.

  • #2078 13c3471 Thanks @DivyamTalwar! - Validate only full 40- or 64-character Git commit hashes when reporting CI provenance.

  • #2144 b324330 Thanks @okwasniewski! - e2e guide matches the project's e2e version. npx e2e guide downloads 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, or npx 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, guide prints the installed version's guide and topics, and guide --help lists 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 9928641 Thanks @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's beforeEach, and a helper's test ended with disappeared 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 from node_modules, and Bun keep one instance, as before.

  • #1883 c330373 Thanks @WellDunDun! - Accept in-memory file payloads in locator.setInputFiles({ name, mimeType, buffer }), including payload arrays.

  • #2142 5ab9121 Thanks @okwasniewski! - e2e init adds a line to AGENTS.md and CLAUDE.md that 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 none writes neither.

  • #2104 02cf99b Thanks @okwasniewski! - e2e init my-app --example without a name lists the example apps and lets you pick one.

  • #2085 64d5be8 Thanks @kdy1! - e2e init now detects a Next.js app (next in dependencies or devDependencies) and writes a web target that starts it, so npm run test:e2e passes right after init with no edits. The target runs the dev script with the project's package manager and reuseExisting: true, on http://localhost:<port>, with the port from the dev script's --port or -p flag, else 3000. When the app has build and start scripts on the same port, CI runs start on the production build instead, and a pipeline from --ci runs build before the tests. Init prints the commands and the URL it used, and no longer asks for APP_URL in such a project. A Next.js app with no dev script, 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 without next gets the same files as before.

  • #2141 70348f4 Thanks @okwasniewski! - e2e init is safe to run again on an initialized project. It reads the existing config's imports and adds the packages package.json lacks, at the ranges a new project gets: @e2e-dev/web and @e2e-dev/mobile with @e2e-dev/core, ai with zod, and a gateway's provider packages. Before, a re-run added e2e alone. Any other package the config imports is yours to add, zod on its own included. When package.json declares another e2e than the one running init, such as an older pinned version under npx 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 deleted tests/example.e2e.ts as the engine-less fetch example. The NO_TESTS message of a project with no test file no longer says e2e init writes one.

  • #2103 2b3bab0 Thanks @KrzysztofMoch! - e2e init renames 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 as OpenAI-compatible / local endpoint. --gateway none is unchanged.

  • #1903 11de64b Thanks @luke-h1! - app.launchArguments and device.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 in app.launchArguments fails at config load with INVALID_CONFIG, and one passed to device.openApp fails that call with INVALID_ARGUMENT. On iOS, mobile() sends each entry as -name value, and so does desktop() on macOS. On Android, each entry is an am start extra of the value's type: --es, --ez, --ei (--el beyond Java's int), --ef, or --esa for a list. An Android object fails when it holds one of Apple's arguments, such as AppleLocale, or a list that am start would 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.launchArguments stays a list of strings. An engine that declares launchArgumentValues: true receives an object in EngineAppInfo.launchArgumentValues; for any other engine an object fails at config load. @e2e-dev/core/engine exports the types, the shape check checkLaunchArguments, and appleUserDefaults, which spells an object as -name value arguments for an iOS or macOS app.

  • #2008 5b61f22 Thanks @michal-e2e! - Without a session option, two mobile() hosts from launch(), 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 as hostId in prepare, init, and finish, and the mobile engine names the host's session e2e-<target>-<token>-<slot>. @e2e-dev/mobile now needs @e2e-dev/core 0.24.1 or newer, the first release that sends hostId. A host that finds no free device now fails instead of sharing one. A host that ends without close() (process.exit(), a kill), or whose session fails to close, leaves its device held until you run agent-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 under artifactsDir are now named core/host-<token>-<attempt id>, so an engine platform that is a secret's value no longer reaches a path on disk.

  • #2236 511a01a Thanks @kdy1! - A test that awaits launch() or host.newSession() and catches its error now passes. Before, the failed call still failed the test with STEP_NOT_AWAITED ("put await in front of it"), for example when the test opened a fresh session after newSession({ state }) failed with SESSION_EXPIRED. launch() now checks its options before it opens, and a failed launch() or newSession() no longer counts as a call still running when the test ends. A call still running when the test ends still fails the test with STEP_NOT_AWAITED. One effect: a call that fails and is caught without await, such as launch(web(), { bogus: true }).catch(() => {}), failed the test before and now passes.

  • #1951 3c2f92c Thanks @BloggerBust! - --reporter line, reporters: ['line'], or line() from e2e/reporters shows 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 Tests total or in the files of the collected event: it never gets a result.

  • #1919 e88153b Thanks @WellDunDun! - Add locator.blur() to remove focus from a web element.

  • #2138 a1853f5 Thanks @okwasniewski! - locator.screenshot(label?) captures the one match and returns the file's path, as app.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 gets UNSUPPORTED_CAPABILITY.

  • #2074 f3f32fd Thanks @DivyamTalwar! - Ignore directories named after package-manager lockfiles when detecting a project's package manager.

  • #2096 634d060 Thanks @Wali05! - Durations just under a unit boundary in the markdown report, trace pages, and failure details now read 1.0s or 1m 0s instead of 1000ms or 60.0s.

  • #1743 c371f78 Thanks @abhinavapasok! - The markdown reporter and the trace pages escape &, so a test title or message holding entity text such as &copy; or &lt;b&gt; shows as written instead of rendering as © or <b>.

  • #1972 25eb2f8 Thanks @satya164! - Attach to a test held at screen.pause() or e2e run --step with
    open_session {attach: "k3f9"} in e2e 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_session detaches
    and leaves the test held. Resume continues the test right away while any
    attached recording saves in the background.

  • #1998 7afe2ea Thanks @okwasniewski! - e2e mcp's open_session takes path, to open on one page of the app instead of its root. call takes a tool's arguments beside tool as well as in args. The opening catalog lists the single actions by signature on one line; tools still describes each.

  • #1998 7afe2ea Thanks @okwasniewski! - e2e mcp now 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 answered No test line.

  • #2146 8ae3ab4 Thanks @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's Unauthenticated request text 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 recorded agent.act steps and tests with no agent call still run. e2e doctor warns when a Vercel AI Gateway or OpenRouter model has no key variable set, and its last line counts the warnings.

  • #2014 7a8e546 Thanks @samanyudas! - On iOS and Android, when a secure field on screen has no bounds to mask, toHaveScreenshot now fails at once with POLICY_DENIED instead of after its timeout, app.screenshot() fails with POLICY_DENIED instead of ENGINE_FAILURE, and an agent step reports MASKING_UNPROVEN for its screenshot.

  • #2139 bf81c8a Thanks @okwasniewski! - The npm homepage of e2e is now https://e2e.com, and @e2e-dev/core, @e2e-dev/web, and @e2e-dev/mobile point at their docs pages on e2e.com. They pointed at the GitHub README, so npm view e2e showed no link to the site or the docs.

  • #2148 9928641 Thanks @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, and fullyParallel: true in the config, on a target, or --fully-parallel for 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 with beforeAll or afterAll hooks 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 1ece4df Thanks @michal-e2e! - Provider keys loaded by a test hook are redacted in subsequent steps, and codex() 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 a system text 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) in OPENAI_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 login codex() finds in CODEX_HOME/auth.json. e2e/agent exports registerProviderKey, registerProviderKeys, redactSecrets, and redactStepText for 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, in e2e run, e2e list, e2e doctor, e2e cache, e2e report, e2e init, and e2e mcp, and list() and explore() from e2e/runner now reject as openHost does, redacted and without the original cause. A key given as a model id is redacted from e2e doctor, the run header, ai-trace.json, and the model a step records. Errors with code MODEL_PROVIDER_FAILED, CONTEXT_OVERFLOW, or MODEL_OUTPUT_INVALID have 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 label incomplete. A provider key is never added to a session's saved secrets. e2e run, e2e mcp, and openHost now warn when NODE_DEBUG names child_process or net, which make Node print environments and request headers, where only e2e's own output is redacted, for its secrets and these keys, and acp() no longer passes NODE_DEBUG to the agents it starts. @e2e-dev/acp now needs e2e 0.25.0 or newer.

  • #2093 bccc638 Thanks @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 (not scrollUntil, which records no count for its list). The step hands off to the agent, or fails with REPLAY_STALE under --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 with REPLAY_STALE under --strict-cache, until it is recorded again.

  • #2013 7e32054 Thanks @satya164! - Added expect(fn).toPass() for retrying a block of assertions, with .not and expect.soft forms. expect.poll accepts a list of intervals, and its default pauses are now [100, 250, 500, 1000] ms. Defaults for toPass can be set with toPass in the config.

    Deprecated: the interval option of expect.poll. Pass intervals: [<ms>]. It will be removed no earlier than April 1, 2027.

  • #2087 81cd8b7 Thanks @imranbarbhuiya! - e2e run --target web --device <name> names only the --target selection in the run header before it fails with UNSUPPORTED_CAPABILITY, instead of every configured target. The --device docs 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 71a2b79 Thanks @imranbarbhuiya! - Add e2e run --device <name> to run the selected mobile target on another simulator, emulator, or phone for one run, by name or id, over its device option: e2e run --target ios --device 'iPad Pro 13-inch (M5)'. With several mobile targets selected, pick one with --target. A web() target, or a target whose devices a provider leases, refuses the flag. An engine opts in with selectsDevice: true and reads the name from EnginePrepareInfo.device.

  • #1963 ed48b0b Thanks @rentezzy! - screen.tapAt, screen.doubleTapAt, and screen.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 new ScreenPoint and ScreenCoordinate types are exported from e2e and @e2e-dev/core.

  • #2151 29a7559 Thanks @michal-e2e! - A sharded run's report now records its shard as run.shard { index, total }, and marks each test this invocation's cut gave to another shard with skip.otherShard: true. A --last-failed rerun writes report-with-reruns.json beside its report: the first run and every rerun since as one report. It also hands its reporters every earlier run folded together as lastRun, through foldLastRun, now exported from e2e. The @e2e-dev/github comment 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/github now needs e2e 0.25.0 or later.

  • #2181 95f80b8 Thanks @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 d88aa99 Thanks @kdy1! - The bundled e2e skill now gives the Next.js setup in one place: next dev locally and next start in CI, the route announcer that getByRole('alert') also matches, a webpack watcher that reads .e2e/, and the create-next-app starter. It links the new Next.js docs page.

  • #2149 7838198 Thanks @michal-e2e! - A step whose label is longer than report.json allows, such as app.open() with a very long path, now has its label cut to 8,192 characters in report.json, so the report stays valid.

  • #2015 23aa697 Thanks @satya164! - --step and screen.pause() keys now appear below the live summary, with s for the screen and l for the app log.
    Time when every running worker is paused is excluded from the terminal's Duration row and the report's new run.durationMs field.

  • #1979 012dd22 Thanks @przytrzask! - Add count to locator.tap() and click(): 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 are count presses at the doubleTap cadence, at most 200. count: 2 is the same action as doubleTap(). Three or more go through the new multiTap engine action, which the browser and mobile engines declare; an engine without it fails with UNSUPPORTED_CAPABILITY.

  • #1921 a5d1788 Thanks @imranbarbhuiya! - Add test.setTimeout(timeout) to change the running test's timeout from its body or a beforeEach hook, or a beforeAll hook's own timeout.

  • #1982 b8809f9 Thanks @przytrzask! - Add test.slow() and test.slow(condition, reason) to triple the running test's timeout from its body or a beforeEach hook, or a beforeAll hook's own timeout, as Playwright's test.slow() does.

  • #1962 07575c9 Thanks @bardrop! - Add expect(locator).toBeEditable(), which waits for an enabled control that is not read-only. { editable: false } waits for a disabled or read-only one.

  • #2011 94fd9a6 Thanks @KrzysztofMoch! - Add expect(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 .not accepts zero matches. The web engine
    measures with the page's IntersectionObserver, matching Playwright, so
    scrolling and overflow ancestors and frames clip the box. The mobile engine
    reports only whether the node is on screen, because a device reports bounds
    already clipped, so ratio > 0 there fails with UNSUPPORTED_CAPABILITY
    once the node is on screen.
    Engines implement the optional viewportIntersection method for the new
    viewport-intersection capability.

  • 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