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 -ynpm install codeceptjs playwright --save-devnpx codeceptjs initnpx codeceptjs runnpx 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:snippetsor -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