Skip to content
/ playwright-mocha Public template

Howto run end-to-end testing with Playwright & Mocha

License

Notifications You must be signed in to change notification settings

yyvess/playwright-mocha

Repository files navigation

🎭 Test automation with Playwright & Mocha

Howto run end-to-end testing with Playwright & Mocha

asciicast

Prerequisite

Initalize the project

  • Clone this project
git clone https://github.com/yyvess/playwright-mocha.git
cd playwright-mocha
  • Run npm install to download project dependancies
npm install

Usage

Run tests on headless mode with Chromium

npm test

Run test on headless mode with Firefox

npm run test:firefox

Run tests on 'head' mode

Run tests with browser visible

npm run test:head

Run tests with watch mode

Rerun tests on file changes.

npm run test:watch

Run your test on Github Actions

main.yml

Record your tests

External documentation