Home

Awesome

playwright-fluent-cucumber-ts-starter

Build Status Build status

Starter project to write E2E tests with cucumber-js and playwright-fluent in TypeScript language.

!!! Use this template only with cucumber-js v6: do not update cucumber-js dependencies to the v7 versions. If you want to use cucumber-js v7 please use this template !!!

After cloning the repo

To execute the tests locally

To execute the tests on a specific browser

To debug a scenario in Visual Studio Code

To run only specific scenarios

npm run only

To run scenarios in headfull/live mode

npm run live

The browser will stay opened at the end of the tests execution.

To ignore a scenario

To check for typescript, linting and gherkin errors

To view the html report of the last run

To view the steps usage

To create a new step

To use a custom option on the CLI

./node_modules/.bin/cucumber-js features/**/*.feature --foo=bar 
if (this.cliArgs.foo === 'bar') {
  // custom code for option --foo=bar
}

To use a custom World Objet