- Node.js (>= 12.x)
- npm (>= 6.x) or yarn (>= 1.x)
-
Clone the repository:
git clone https://github.com/yourusername/PlaywrightTypeScriptDemo.git cd PlaywrightTypeScriptDemo -
Install dependencies:
npm install
or
yarn install
-
Run the tests:
npx playwright testor
yarn playwright test -
View the test report:
npx playwright show-report
or
yarn playwright show-report
-
To run a specific test file:
npx playwright test path/to/test-file.spec.tsor
yarn playwright test path/to/test-file.spec.ts -
To update Playwright browsers:
npx playwright install
or
yarn playwright install