Skip to content

A BDD test framework example using Microsoft Playwright, Cucumber and Page Object Model pattern

Notifications You must be signed in to change notification settings

apatelia/playwright-pom-bdd

Repository files navigation

About

This repository contains a BDD test framework example using Playwright, Cucumber and Page Object Model pattern.

Usage

  1. Download the zip file or clone this repository.
  2. Change the directory to playwright-pom-bdd.
cd playwright-pom-bdd
  1. Install dependencies.
npm install
  1. Install browsers.
npx playwright install
  1. Run tests.
# run all the tests/features.
npm run test

# Run specific test(s) using specific tag(s).
# You can use Feature file level or test scenario level tags for fine control over execution.

# run all tests with @login tag.
npm run tag "@login"

# run all tests tagged with @cart_footer and @copyright, BOTH tags.
npm run tag "@cart_footer and @copyright"

# run all tests excepts the tests with @login tag.
npm run tag "not @login"
  1. Generate a nice HTML report.
npm run report

About

A BDD test framework example using Microsoft Playwright, Cucumber and Page Object Model pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published