Skip to content

archoleat/browtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browtest

ESM CodeQL Commitlint Editorconfig Prettier ESLint Remark

Table of Contents

Installation

  1. Clone the repository.

  2. Run pnpm init for install dependencies.

  3. Change the url address in the playwright.config.ts file if necessary.

  4. Start the local server with vite, wepback or next

  5. After all steps start Browtest.

    Learn more about the available modes.

Settings

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.

Scripts

  • 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.

  • firefox:desktop: Runs desktop Firefox.

  • chrome:desktop: Runs desktop Chrome.

  • chrome:mobile: Runs mobile Chrome.

  • multiple:desktop: Runs all desktop browsers in parallel.

  • multiple:mobile: Runs all mobile browsers in parallel.

  • all: Runs all tests.

Contributing

Please read CONTRIBUTING to start contributing.

License

This project is licensed under the MIT license.