Skip to content

1.64.1-flashwright.8

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
· 175 commits to main since this release
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.8

New

  • locatorPolicy: 'test-id': only getByTestId() locators (and the methods that combine them) may select elements; any other locator fails right away. On the 8,500-element inventory benchmark, a named getByRole() 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.
  • setInputFiles decodes 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 with locatorPolicy: 'test-id'.
  • Traced page scripts wait for the snapshot after them.

Full list: v1.64.1-flashwright.7...v1.64.1-flashwright.8