Join us in this welcoming GitHub repository dedicated to empowering and engaging novice contributors in the world of open-source projects. We are focused on incorporating Playwright test scripts for both UI and API testing, while exclusively utilizing legitimate free APIs and UIs to automate these scripts. Contribute, learn, and grow with us as we collaborate on open-source projects!
- Prerequisites
- Installation
- Running the Tests
- Report Generation
- Contact
- Node.js
- Visual Studio Code
- Git Version Control
Refer CONTRIBUTING.md before sending a PR.
Create your profile for hacktoberfest here.
for creating a new project,
- Download Node.js
- Set "NODE_HOME" env variables
- Create Playwright working folder
- Generate package.json
- Go inside the project folder and do CMD
npm init playwright@latest
for this project,
- Type
npm install
on IDE terminal should be enough.
npx playwright test --ui
- UI modenpx playwright test
- run all testsnpx playwright test TC.spec.ts
- run a specific testnpx playwright test TC.spec.ts --headed
- run a specific test with UInpx playwright test TC.spec.ts --project chromium --headed
- run a specific test with UI with specific browser
npx playwright codegen --test-id-attribute="data-cy"
- playwright recorder
npx playwright show-report
- to view the report
Please log your concern CONTACT.md