Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Jonas 4c546f77b0
test(cypress): Fix import from `cypress-visual-regression`
Signed-off-by: Jonas <jonas@freesources.org>
2024-02-26 14:40:25 +01:00
Max 57662dff43
fix(sync): push local changes on reconnect
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>
2024-01-18 07:52:18 +01:00
Jonas a73f1f339f
test(cypress): Add test to visually compare print view
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>
2023-11-29 17:08:39 +01:00
Julius Härtl 3e4b2ed96e
ci(cypress): Refactor requesttoken handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-10-25 14:23:56 +02:00
Julius Härtl 83b0e747a4
ci(cypress): Use cypress-split for running tests in parallel
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-10-12 18:08:32 +02:00
Max 51bea29c55
cypress: Use createUser and login from @nextcloud/cypress
This also means we need to separate login and initial visit.

Signed-off-by: Max <max@nextcloud.com>
2022-11-30 11:30:53 +01:00
Vinicius Reis 43b38fdd86
🎨 format code
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-09-26 11:58:03 -03:00
Max ba2c493439
cy: only run retries in run mode - not in open mode
Signed-off-by: Max <max@nextcloud.com>
2022-08-31 11:23:22 +02:00
Max ce9b52dad5
test: retry failed cypress tests twice
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>
2022-06-30 14:31:24 -03:00
Ferdinand Thiessen ff1d6e497e
Clean up cypress tests
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>
2022-06-30 13:41:01 -03:00
Vinicius Reis 803eb231b3
🎨 (#2463): indent code
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-06-09 10:35:38 +02:00
Ferdinand Thiessen 324ebe92f8 Fix cypress scripts for local run + Add documentation
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>
2022-06-05 12:39:56 +02:00