Automation Eyebuydirect - Playwright This repository contains automation scripts for web testing on "https://www.eyebuydirect.com/" website using Typescript, Playwright.
- Login Valid (Validation of Account)
- Login Invalid (Validation on Email)
- Filters (Ensure that the use of one or more filters retrieves the correct data)
- Wishlist (Ensure functionality of add and remove wishlist)
- Take a screenshot of each test case and organize them into separate folders based on the test case.
- Allure Report
Runs the end-to-end tests
npx playwright testStarts the interactive UI mode
npx playwright test --uiRuns the tests only on Desktop Chrome
npx playwright test --project=chromiumRuns the tests in a specific file
npx playwright test exampleRuns the tests in debug mode
npx playwright test --debugAuto generate tests with Codegen
npx playwright codegenAllure Documentation
https://github.com/allure-framework/allure-js/blob/main/packages/allure-playwright/README.mdInstall allure-playwright using a package manager
npm install -D allure-playwrightMake allure reporter via the command line
npx playwright test --reporter=allure-playwrightInstall or upgrade Allure Report
https://allurereport.org/docs/install/Check Allure version
allure --versionGenerate Allure Report after the tests are executed:
allure generate ./allure-results -o ./allure-reportOpen the generated report:
allure open ./allure-reportChange this parameter on defineConfig
reporter: [["html"],["allure-playwright"]],
use: {
trace: 'on-first-retry',
screenshot: "only-on-failure",
video: "on"
},
Run test
npx playwright testGenerate Allure Report after the tests are executed:
allure generate ./allure-results -o ./allure-report --cleanOpen Allure Report
allure open ./allure-report