Repository navigation
@e2e-dev/web@0.15.5
Patch Changes
-
#1479
d15a98eThanks @okwasniewski! -app.baseUrlno longer ends in a slash, so${app.baseUrl}/api/usersrequests/api/usersinstead of//api/users. Withtestfrom@e2e-dev/web,app.baseUrlis typedstring, since aweb()target always declaresapp.url. A test that relied on the trailing slash, such as${app.baseUrl}api/usersornew URL('users', app.baseUrl)on a URL with a path, adds the slash itself. -
#1553
9267248Thanks @okwasniewski! -browser.evaluatereturns its result when the evaluated code deletes or replaces page globals such asMaporObject, and on pages that deleteArrayorJSON. When a page replaces a built-in the engine's in-page code needs, such asMap, later evaluates and locators fail withEVALUATE_FAILEDinstead ofENGINE_FAILURE.browser.evaluatenow returns plain JSON only, orundefinedwhen the code returns nothing. A class instance such as aDOMRector an element fails withINVALID_ARGUMENTinstead of arriving as a partial object; returnrect.toJSON()or the fields you need. -
#1549
08b102aThanks @okwasniewski! - An element inside a hidden<iframe>now reads as hidden, cross-origin frames included:isVisible()returns false,toBeHidden()passes,getByRoleand{ visible: true }skip it, and actions wait until the frame shows. -
#1576
33a1541Thanks @kdy1! - Start faster by loading heavy dependencies when a command or session needs them. The CLI no longer loads the MCP server, the prompt library, or the schema library untilmcp,init,login,logout,models,explore,upgrade,doctor, or--watchruns, soe2e --versionand--helptake about 25% less time.@e2e-dev/webimports Playwright when a browser is first launched or looked up, so a process that only reads the config skips it:e2e liston a web project takes about 44% less time, and importing the package half as long. A worker loads Playwright for its first browser instead of before its first test, so that test's reported duration grows by about 0.14 s while the run takes no longer.e2e/runnerno longer loads the explorer when imported.@e2e-dev/acploads the ACP and MCP SDKs when its first session starts, and@e2e-dev/limrunloads@limrun/apiwhen its first device is leased. -
#1571
4c44e44Thanks @kdy1! - An observation no longer creates and releases an element handle for every node it lists. The reader keeps its elements in one in-page array per document, and an action makes the handle for its node the first time it reaches for it. Reading a 3000-node page takes about 80 ms instead of about 360 ms, and the engine stops blocking its event loop for around 100 ms releasing the previous observation's handles. References still name the element the walk read. -
#1552
d2556bcThanks @okwasniewski! - Breaking:inputValue()on a node with no value, such as a heading or a button, andisChecked()on a node with no checked state throwACTION_FAILED, as in Playwright, instead of returning""andfalse. A field with no value still reads"", and a checkable role with no state reported still readsfalse.uncheck()on an ARIArole="radio"now clicks it, as in Playwright; a native radio still refuses. -
#1544
8f17ad3Thanks @okwasniewski! - TwotoHaveScreenshotcalls (or other screen reads) running at once on one page no longer fail withLOCATOR_NOT_FOUND: node became stale. The engine now takes concurrent observations in turn. -
#1548
40826e4Thanks @okwasniewski! -route.fulfilltakes aBufferorUint8Arraybody and sends the bytes unchanged, and sets every cookie of aset-cookieheader that joins them with\n. Aroute.continueheader set toundefinedis dropped, also on redirects.WebResponseaddsbody(), which returns the bytes, soroute.fetch()andwaitForResponsecan hand binary bodies on. -
#1551
e99a6faThanks @okwasniewski! - In Chromium, screenshots,toHaveScreenshot, and observations no longer wait on an iframe whose first navigation has not committed, such as one whose request a route handler holds. Before, they timed out with no screenshot. -
#1547
4dce5a7Thanks @okwasniewski! -tap({ position })measures the offset from inside the node's border, as Playwright'sclick({ position })does. Before, a bordered element shifted the tap by its border width. Engines can report that point as the new optionalSemanticNode.origin. -
#1505
bdf769bThanks @okwasniewski! - A fixture call that times out names what it waited for:browser.waitForResponse('foo.css')fails withoperation timed out in browser.waitForResponse "foo.css". Steps forwaitForURL,waitForResponse,route, andunrouteshow a string pattern in quotes and a RegExp as its literal. -
#1554
d2953bbThanks @okwasniewski! - A call'stimeout: 0now means no deadline of its own, as in Playwright: locator actions,waitFor, matchers,toHaveScreenshot,expect.poll, contributed fixture calls, andbrowser.goto,waitForResponse, andwaitForDownloadwait until the test timeout (cleanupTimeoutinafterEach) instead of failing at once or being refused. A negative,NaN, or infinitetimeoutisINVALID_ARGUMENTon every call, locator actions included (INVALID_CONFIGonexpect.poll, as before).expect.pollwithtimeout: 0outside a test isINVALID_CONFIG. Engine authors getstepTimeoutfrome2e/engineto give a contributed call'stimeoutoption the same rules. -
#1493
91bd614Thanks @okwasniewski! -e2e doctorreports whether the browser a run launches is installed, or that the first run will download it. Requires e2e 0.22.1 or newer. -
#1550
4e7e8b8Thanks @okwasniewski! - Two failures caused by the test or the page no longer report asENGINE_FAILURE:- A
browser.gotowhose request a route aborted fails withACTION_FAILED. When the route aborted it because the handler threw, such as aroute.fulfillwith an invalid header, thegotofails with the handler's error. app.screenshot()taken while the page navigates captures the document showing, masked.
A closed page or browser is still
ENGINE_FAILURE. - A
-
#1524
cba5e0eThanks @okwasniewski! - The web engine implementssession.resize, so the agent'sresize_viewporttool is available on web targets. Requires e2e 0.22.1 or newer.