Repository navigation
Releases
Releases · xcodebeast/flashwright
1.64.1-flashwright.12
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.12Fixed
- Videos of tests with many actions, and a failed video fails the run
1.64.1-flashwright.11
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.11New
- 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
1.64.1-flashwright.9
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.9New
- 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
1.64.1-flashwright.8
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.
1.64.1-flashwright.7
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.7New
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.
1.64.1-flashwright.6
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.6New
workersPerProcess(--workers-per-process): several workers share one worker process and its browser. With 4 workers on TodoMVC,2takes a run from 795 to 590 MB and4to 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 firstgotoreturns 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.
1.64.1-flashwright.5
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.5Faster
- Fewer browser round trips per action, smaller page scripts.
1.64.1-flashwright.4
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.4Faster
- Shorter context recycling between tests; the injected script is prepared during
goto. - Less work per API call and protocol message.
1.64.1-flashwright.3
npm i -D @playwright/test@npm:flashwright-test@1.64.1-flashwright.3Faster
- 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.
1.64.1-flashwright.2
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.2Highlights
- 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.