Skip to content

Releases

1.64.1-flashwright.12

Choose a tag to compare

@xcodebeast xcodebeast released this 19 Nov 00:10
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.12

Fixed

  • Videos of tests with many actions, and a failed video fails the run

Full list: v1.64.1-flashwright.11...v1.64.1-flashwright.12

1.64.1-flashwright.11

Choose a tag to compare

@xcodebeast xcodebeast released this 13 Nov 19:42
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.11

New

  • The HTML report and trace viewer leave out the zip writer
  • Published bundles are minified without renaming
  • Hard forks of bundled packages in vendor/

Fixed

  • Processes started by a worker sharing a process get its environment on Node 26
  • Traces load with zip.js 2.24
  • The extension manifest and test uploads work with the updated packages

Full list: v1.64.1-flashwright.10...v1.64.1-flashwright.11

1.64.1-flashwright.9

Choose a tag to compare

@xcodebeast xcodebeast released this 03 Nov 22:29
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.9

New

  • A web server per project
  • accept-snapshots takes the last run's actual snapshots
  • --prune-snapshots deletes the snapshots no test used
  • Options for one test in its details
  • --watch reruns the tests of saved files in the terminal
  • Playwright doctor checks what a run needs
  • Failed waits for an element say what the page has instead
  • Agent mode prints failures only and writes summary.json
  • Discouraged APIs are deprecated in the types, with a codemod to locators

Faster

  • --watch starts the next run's test loader ahead of time
  • CSS and role queries walk the tree instead of listing every element
  • Chromium's DevTools pipe speaks CBOR
  • getByLabel looks only at elements that can have labels
  • Text locators allocate less per element
  • Role queries with a name rule out elements from their text
  • Role queries read each element's display and presentation chain once
  • Text locators normalize nested wrappers' text once
  • only-on-failure screenshots are taken once the test fails

Fixed

  • A reused Firefox page leaves the previous test with scripts off
  • Input into out-of-process iframes waits for the page to render
  • The injected script's source stays ASCII
  • Role queries do not rule out names under aria-hidden
  • A browser launched ahead of time is adopted whatever Babel's switch says
  • Role queries rule out names from text only when exact

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

1.64.1-flashwright.8

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
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

1.64.1-flashwright.7

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.7

New

  • isolation: 'strict' gives every test a new browser context, like Playwright (the default, 'recycled', gives each test a new tab in a context the worker keeps and resets).
  • Each worker of a shared worker process sees its own process.env.

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

1.64.1-flashwright.6

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.6

New

  • workersPerProcess (--workers-per-process): several workers share one worker process and its browser. With 4 workers on TodoMVC, 2 takes a run from 795 to 590 MB and 4 to 493 MB, and makes it 1.08× and 1.12× faster.
  • preloadPages: while a test runs, the next test's page loads in a second context, and that test's first goto returns at once. With one worker: TodoMVC 1.26×, a suite waiting on its API 1.40× faster.

Fixed

  • A test's service workers stop when its recycled context is reset.

Full list: v1.64.1-flashwright.5...v1.64.1-flashwright.6

1.64.1-flashwright.5

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.5

Faster

  • Fewer browser round trips per action, smaller page scripts.

Full list: v1.64.1-flashwright.4...v1.64.1-flashwright.5

1.64.1-flashwright.4

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.4

Faster

  • Shorter context recycling between tests; the injected script is prepared during goto.
  • Less work per API call and protocol message.

Full list: v1.64.1-flashwright.3...v1.64.1-flashwright.4

1.64.1-flashwright.3

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.3

Faster

  • Re-runs in the warm session end before their workers do.
  • Less work per step and per protocol error.

Fixed

  • V8 code caches come from the processes that ran tests.

Full list: v1.64.1-flashwright.2...v1.64.1-flashwright.3

1.64.1-flashwright.2

Choose a tag to compare

@xcodebeast xcodebeast released this 31 Oct 20:22

The first tagged release of Flashwright, a fork of Playwright 1.64.1 with the same API, test runner and browsers, at least 2× faster on every scenario of its benchmark.

npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.2

Highlights

  • Warm session, on by default outside CI: the next run's runner, workers and browsers are kept ready, so one test re-runs in about 0.1 s instead of ~0.6 s.
  • failFastWhenIdle, on by default in the test runner: an assertion that can no longer pass, because nothing can change the page before its timeout, fails right away.
  • Prepared contexts for tests with a storage state; replacement workers start as warm as the ones they replace.
  • Electron windows keep Playwright's wait for animations.

See the README for the benchmarks, speed options and differences from Playwright.