Code Monkey home page Code Monkey logo

playwright-web-boilerplate's Introduction

playwright-web-boilerplate

Playwright boilerplate with test examples for several components.

Getting started macOS

๐Ÿ’ผ Prerequisites

๐Ÿ”ง Installation

brew install nvm

๐Ÿงญ Quickstart

Clone the project and then run the following commands:

nvm use
npm install

๐Ÿ“” Notes

  • if you are using Visual Studio Code as your IDE, please consider installing the following extensions to make your life easier: GitLens, Path Autocomplete and the official extension for Playwright called Playwright Test for VSCode.

Commands to run tests

npx playwright test --project=foobar

Summary of command line arguments:

yarn playwright test -> the command used by Playwright to run all the tests from the tests folder. If you want to run a specific test and not the whole suite, please refer to this documentation.

--project=foobar -> where foobar is the browser on which you want to run your tests (e.g. chromium, firefox, etc.). Please refer to this documentation for more information.

Please note that Playwright supports several flags when running tests, such as --workers, --debug, etc. Please check the official documentation if you want to customise your command further.

Playwright

Read more about configuring Playwright.

playwright-web-boilerplate's People

Contributors

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