This projects tests the Hudl login using Playwright for following scenarios:
- Successful Login
- Unsuccessful Login - Incorrect Username
- Unsuccessful Login - Incorrect Password
Browsers tested are - Chrome, Firefox and Webkit
-
Navigate to Github Actions and download the 'playwright-report'
-
On your terminal, navigate to the folder where you saved the report and type:
npx playwright show-report playwright-report
- The above command opens an html report in your browser. You can view the captured video of any test by scrolling down to the bottom to the video and hitting play.
- Playwright 1.50.1
- Node v20.4.0
- npm v9.7.2
- VSCode 1.77.3
Pre requirements:
- Node setup
- An IDE, e.g. VS code setup
- Playwright setup
On your terminal, type:
-
npm i -
npm install dotenv
This intsalls the required module for using env variables stored securely in Github
-
Rename the .env.example file to .env
-
Add a valid username and password
On your terminal type:
npx playwright test --headed