Run tests in Playwright.
Install the package from npm:
npm i @mochify/driver-playwright -D
and pass it to the CLI:
mochify --driver playwright ...
The driver allows the following options to be set:
Defines the stream the test output will be written to. Defaults to process.stderr
The browser engine to use.
Right now, Playwright supports chromium
, firefox
and webkit
.
Defaults to firefox
.
Run tests in the context of the given URL.
Defaults to an empty document served using the file:
scheme.
In addition to the driver options documented above, driver-playwright
allows you to pass through all of Playwright's other launchOptions
using the defaults as described here.