This will hopefully make the CI more stable
while allowing us to also see which tests are flaky
in the cypress ui.
Some tests may not be retryable yet.
So they will always fail on a second attempt because of remains of a first attempt.
We can tackle that on a test by test basis later.
Signed-off-by: Max <max@nextcloud.com>
1. Clean up lint issues of the cypress tests
2. Fix placed where .find was intended but .get was used
3. Remove duplicated code
4. Remove residues of cypress 10 migration
5. Add some documentation on available commands
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Fix the scripts for local cypress runs,
they need to be run within the `npm run` environment,
as the nextcloud webpack config requires the `npm_package_name`
variable to be set.
Also a up-to-date nextcloud instance is required for testing
text at the current git head, so updated the dockerfile
and docker-compose files to create a nextcloud image from current git head.
Additionally updated the tests to use cypress 10.x and
added missing documentation on how to run the cypress tests.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>