- /tests: Contains all test cases and scenarios.
- /perf-results: Stores performance test results.
To set up and run the tests locally:
- Clone the Repository:
git clone https://github.com/adsabs/ui-integration-testing.git
cd ui-integration-testing
# Install dependencies
pnpm install
- Run the Tests:
# Run all tests
pnpm test
# Run tests in watch mode
pnpm test:watch
For the other account login tests make sure you have a good test account created in the environment and add the TEST_EMAIL
and TEST_PASSWORD
environment variables.
The tests watch for these variables and will be skipped if they are not set.
Pass Arguments to Playwright
pnpm test -- --ui
pnpm test -- --headed
Some of the tests require authentication. To run these tests, you'll need to create two test accounts and verify them yourself.
You can use plussed (+
) email addresses to create the alt account, for example:
[email protected]
[email protected]
TEST_PASSWORD=yourpassword
These shouldn't be accounts you use for anything else, as the settings/libraries will be changed/deleted during the tests.
- Go to https://console.developers.google.com/
- Create a new project
- Add the Gmail API to the project
- Create credentials for the project
- Download the credentials as a JSON file, save this in the
gmail
directory - Set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of the JSON file