brew install node
node -v
Any version >14 will be okay to execute project
git clone https://github.com/vigneshrajsb/fn-playwright.git
npm install
Install browser binaries with if needed
npx playwright install
npm run test
To execute in headed mode:
npm run test:headed
Once tests are executed, we can run the below command to view the HTML report with traces.
npx playwright show-report
- Tests are defined as
*.spec.js
files under/tests
dir - Page models are inside
/pages
dir as*.model.js
- Playwright test runner configuration is at the root of the directory with 2 browser combinations - Desktop chromium && safari
Please let me know if any issues with execution. Appreciate any feedback!!!