Giter Club home page Giter Club logo

browtest's Introduction

Browtest

CodeQL Commitlint Editorconfig Prettier ESLint Markdown ESM Only

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

Contributing

Please read CONTRIBUTING to start contributing.

License

This project is licensed under the MIT license.

browtest's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar nikkeyl avatar semantic-release-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.