-
Clone the repository.
-
Run
pnpm init
for install dependencies. -
Change the url address in the
playwright.config.ts
file if necessary. -
Start the local server with
vite
,wepback
ornext
-
After all steps start Browtest.
Learn more about the available modes.
In playwright.config.ts
the minimum settings are set,
for more serious testing we advise you to use Chrome, Edge, Firefox
or Safari.
In the src/shared/spec-settings.ts
you can change the path
to the main directory and enable or disable devtools for
all tests you run.
By default, devtools are turned off.
-
init
: Installs dependencies, Husky, Playwright. -
screenshot:desktop:all
: Creates screenshots for all desktop browsers.Screenshots are saved at
spec-results/screenshots/{browserName}-{dateNow}.png.
-
safari:desktop
: Runs desktop Safari. -
safari:mobile
: Runs mobile Safari.
Please read CONTRIBUTING to start contributing.
This project is licensed under the MIT license.