Repository navigation
1.64.1-flashwright.8
·
175 commits
to main
since this release
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.8New
locatorPolicy: 'test-id': onlygetByTestId()locators (and the methods that combine them) may select elements; any other locator fails right away. On the 8,500-elementinventorybenchmark, a namedgetByRole()takes 37 ms and a test-id lookup 2 ms.- Firefox and WebKit tests reuse one context and tab per worker (TodoMVC on Firefox: 6520 -> 3868 ms).
- Tests that record video use the recycled context (TodoMVC with
video: 'retain-on-failure': 2850 -> 1312 ms). - Workers start the browser their config's tests launched last time.
Faster
- Role, label and text queries on large pages.
- Traced calls no longer wait for the DOM snapshots before and after them; live traces fetch each script body once and zip resources faster.
toHaveScreenshot()decodes the baseline while the browser captures.- Passing ARIA assertions skip rendering the snapshot.
setInputFilesdecodes file buffers without a per-byte callback.- Route globs compile once; storage state navigations skip the injected script; fixture names are read from a test's parameter list only; source maps are not sorted again when already in order.
Fixed
- A worker whose tests use no browser closes the one it started ahead of time.
mount()works withlocatorPolicy: 'test-id'.- Traced page scripts wait for the snapshot after them.