When an editing session is interrupted
steps that were already pushed to the server
may be cleared alongside the sync service session.
Make sure to push all local state
that is not part of the document state
when (re-)connecting.
Tests
Yjs relies on a browser environment.
Therefore we test it in a cypress test.
Move these tests into component tests
to separate them from 'normal' e2e tests.
Signed-off-by: Max <max@nextcloud.com>
Compare print view of long document visually using
`cypress-visual-regression` to detect regressions in print view in the
future.
Signed-off-by: Jonas <jonas@freesources.org>
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>