-
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 and update submodules. -
spec:safari:desktop
: Runs desktop Safari. -
spec:safari:mobile
: Runs mobile Safari. -
spec:firefox:desktop
: Runs desktop Firefox. -
spec:chrome:desktop
: Runs desktop Chrome. -
spec:chrome:mobile
: Runs mobile Chrome. -
spec:multiple:desktop
: Runs all desktop browsers in parallel. -
spec:multiple:mobile
: Runs all mobile browsers in parallel. -
spec:all
: Runs all tests from desktop/ and mobile/ folders. -
screenshot:desktop:all
: Creates screenshots for all desktop browsers.Screenshots are saved at
spec-results/screenshots/{browserName}-{dateNow}.png.
Please read CONTRIBUTING to start contributing.
This project is licensed under the MIT license.