This project runs UI tests for different parts of the AGILE-UI project. It uses cypress, whose documentation can be found here.
Before starting, run npm install to install the cypress module.
First adjust the properties in the configuration file conf.json, e. g. the URL of UI and the URL of agile-security to acquire an OAuth2 token.
Furthermore, two users (admin and a less privileged user) and a client must be defined, which need to be added in AGILE in advance.
To write tests add or modify files in the cypress/integration/ directory. For this you can follow cypress' documentation on writing tests.
Run cypress:open to start the cypress framework. Chose a file in which your tests are. The tests will start automatically.