Codeceptjs Playwright - yelenagotraining/E2EFrameworks GitHub Wiki

CodeceptJS + Playwright

CodeceptJS is a wrapper around frameworks such as Puppeteer, Playwright, Selenium, etc.

Codeceptjs is a quick and easy way to write understandable to different users.

Steps to initialize

  • npm init -y
  • npm install codeceptjs playwright --save-dev
  • npx codeceptjs init
  • npx codeceptjs run
  • npx codeceptjs gherkin:init

Going over the codecept.conf.js file

  • configure page object models PageObjectModel
  • generate a new test npx codeceptjs gt
  • configure reporting
  • configure timing
  • To generate step defintion file for uncovered feature files
  • npx codeceptjs gherkin:snippets or -npx codeceptjs gherkin:snippets --feature ./features/basic.feature --path ./step_definitions/basic.steps.js

Link to codeceptjs BDD explanation

https://oshomo.oforomeh.com/articles/2020/03/bdd-with-codeceptjs