This is a boilerplate project which includes CodeceptJS + Playwright setup using TypeScript.
Clone this repository to start:
git clone https://github.com/codeceptjs/typescript-boilerplate .
Remove
.gitfolder as you won't need it anymore
Install dependencies:
npm i
This boilreplate installs Playwright for you. However, you can easily switch to WebDriver or other engine of choice by adding a corresponding helper and installing required dependencies
codecept.conf.ts- main configuration filetests/**_test.ts- test fileshomePage.ts,loginPage.ts- page objectsCustomHelper- a custom helperpresettings.ts- placeholder for bootstrap / teardown scripts