This is test automation repository for saucelabdemo project
Node.js and npm need to be installed. You can download them from the Node.js website.
Before running tests, you need to install the required dependencies. Navigate to the root directory of the saucedemo_test project in your terminal and run the following commands:
npm installnpx playwright install
All scenarios can be found in basic_scenarios.spec.ts
npx playwright test
npx playwright test --headed
- define any tag in test description like, for exmaple, @basic:
test('Customer sorts product items @basic', async () => {
- then use the same tag when run your tests
npx playwright test --grep @basic
npx playwright show-report
Can be found in /playwright.config.ts