Home

Awesome

playwright-fluent-cucumber-ts-starter

Build Status Build status

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

After cloning the repo

To execute the tests locally

To choose a reporter

The last reporter/formatter found on the cucumber-js command-line wins:

--format summary --format @cucumber/pretty-formatter --format cucumber-console-formatter

In package.json file, modify the cucumber script to keep only your preferred formatter.

To debug a scenario in Visual Studio Code

To run only specific scenarios

To run scenarios in headfull/live mode

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 steps usage

To view the html report of the last run

To create a new step

To use a custom option on the CLI

With cucumber-js v7, you cannot have anymore custom options on the CLI. This is a breaking change with cucumber-js v6.

You must instead use environment variables.

When running your tests localy, you can setup environment variables by customizing the file set-environment-variables.ts.

When running on a CI, you should setup your jobs with the expected environment variables.

To use a custom World Objet