This repo have the basic project structure for Playwright with typescript and cucumber BDD frameworks
- src -> Contains all the features & Typescript code
- Clone or download the project
- Extract and open in the VS-Code
npm i
to install the dependenciesnpx playwright install
to install the browsersnpm run test
to execute the tests- To run a particular test change
paths: [
"src/test/features/featurename.feature"
]
- Use tags to run a specific or collection of specs
npm run test --TAGS="@test1 or @test2"
src\test\features
-> write your features heresrc\test\steps
-> Your step definitions goes heresrc\hooks\hooks.ts
-> Browser setup and teardown logiccucumber.json
-> One file to do all the configspackage.json
-> Contains all the dependencies
- Learn Playwright - Playwright - TS
- Learn CucumberBDD - CucumberBDD