This project contains a suite of end-to-end tests for the ARC project. The aim is to have a wide cover of the flows and test the UX in several browser environment.
In order to build and run this project are required:
The table below describes all the Environment variables needed by the application.
| Variable name | Description | type |
|---|---|---|
| BASE_URL | the target site | url |
| USERNAME | Username to access with | string |
| PASSWORD | Password for the user | string |
| IDENTITY_PROVIDER_BUTTON_TEST_ID | button id of auth provider | string |
- Clone the repo
git clone https://github.com/pagopa/arc-fe-e2e.git
- Install node packages
yarn install
- Create a file
.envin the root and copy & paste the content of.env.exampleone. Modify the values appropriately (see the reference above).
Start the test
yarn testOr, if desired, test a single file
yarn test tests/FILENAME.spec.ts