Automated tests for the Photo Gallery application, written using the Playwright testing framework.
- Clone the repository:
git clone https://github.com/bridget75/photo-gallery-tests.git cd photo-gallery-tests
2.Install dependencies:
npm install
- Install Playwright browsers:
npx playwright install
- To run the positive login test only:
npx playwright test tests/login.spec.js
- To run all tests:
npx playwright test
- Browser used: Chromium
- Testing Framework: Playwright
- Tests are located in the tests/ folder.
- For detailed test reports, check the playwright-report folder generated after running tests.
- If you want to run tests with browser UI (headed mode), add --headed flag:
- Windows users: If you encounter a script execution error when installing or running tests, run the following command in PowerShell:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass