Hi 👋🏽!
Tests at https://www.saucedemo.com/ using Playwright for the MTC 2023. With and without pom and github actions.
If you find it useful, consider leaving a ⭐️ for this repo.
Happy Testing 🎭!
- Playwright v1.35.0
- dotenv v16.1.4
- Node v20.3.0
- npm v9.6.7
- VSCode 1.78.2 (Universal)
Pre requirements:
- Copy the project URL
https://github.com/raptatinha/twr-playwright-demo-mtc.git
; - Fork the project following the GitHub instructions - (use the parameter --clone=true);
- Access the forked project
cd twr-playwright-demo-mtc
-
Set up the environment variables.
1.1. Create the following file in the project root folder:
- .env
1.2. Copy the content of .env.example into the newly created file.
1.3. Update the PASSWORD (you can check the password here: https://www.saucedemo.com/). -
On your terminal, type:
2.1.
npm i
All the commands are in the package.json.
- Run tests without POM:
npm run test-ui
- Run tests without POM on chrome only:
npm run test-ui-c
- Run tests with POM:
npm run test-ui-pom
npx playwright show-report
Using GitHub Actions. Check playwright.yml
💡 Share on LinkedIn something interesting you've learned! Don't forget to tag me Renata Andrade.
💜 If you have questions, feel free to post them on github.
Happy Testing 🎭