- Fork playwright-bdd repo
- Clone your fork to the local machine
git clone https://github.com/<YOU_NAME>/playwright-bdd.git
- Install dependencies:
cd playwright-bdd npm install
- Install Playwright browsers:
npx playwright install chromium
npm t
Use the command below (use TAB after typing test/
to autocomplete test path):
npm run only test/<%test-dir%>
Example:
npm run only test/bdd-syntax
Install needed Playwright version:
npx cross-env PW=1.39 npm run pw
Install corresponding browsers without clearing other versions:
npx cross-env PLAYWRIGHT_SKIP_BROWSER_GC=1 npx playwright install chromium
Run tests:
npm t
Install needed Cucumber version (without saving to package.json
):
npm i --no-save @cucumber/cucumber@10
Run tests:
npm t