This repository contains the E2E tests used to validate and verify List Assist deployments.
The repository follows a Page Object Model (POM) design pattern, ensuring that locators and actions are well-organized and reusable.
See the POM docs for more info
├── tests/ # Test files
├── page-objects/ # Page objects
├─── components/ # Common components shared across pages
├─── elements/ # Common elements that could be found in a page or in a component
├─── pages/ # Unique pages that may contain their own locators
├── utils/ # Utility functions or common tasks (e.g., login, API methods etc)Ensure you have the following installed on your machine:
- Node.js (v14+)
- Yarn
Clone the repository and install the dependencies:
git clone https://github.com/your-username/playwright-template.git
cd playwright-template
yarn install
yarn playwright install --with-depsSecrets for this repo are stored in an Azure Key Vault. For local set up, you can use the get_secrets.sh script to populate your .env file.
Jenkinsfile_nightly also uses this key vault, this file will need to be updated when new secrets are added/removed.
When adding a secret in the key vault ensure the secret is tagged with tag name: e2e and the tag value should be the env variable set in the .env.example file.
Run all tests using the Playwright test runner:
yarn playwright testTo run a specific test file:
yarn playwright test tests/specific_test_file.spec.tsTo run tests on a specific browser:
yarn playwright test --project=chrome
yarn playwright test --project=firefox
yarn playwright test --project=webkit