We copy each test document into the work-dir
and now we also give them a random prefix.
This is critical to ensure that parallel runs
do not re-use the same document.
Also, when closing a document, we wait for the
document-name to disappear from the admin
console. Sharing the same document, or even the
name, means we are likely to see random results.
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
(cherry picked from commit d998f2c1c8a163c3ef870bbe8581a364df3905bb)
Change-Id: I2f41566952c49c9c63ee206bcba6a4dd49cdd6d0
The test document wasn't properly closed before
reopening. This went unnoticed until the 'unload'
phase grew longer such that the new load command
basically added a view on the existing document,
instead of create a new instance altogether.
This clearly was an issue that caused timing-based
instabilities. Now we properly close and wait
until we confirm the document is closed before
opening a new instance.
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
(cherry picked from commit 54999291e95d75626426e2f306afa55b7a4f6fa3)
Change-Id: Icda6d7870c1352cc90002ced3c74e692fa849444
now all uno buttons with the same command will share class not id:
.unoXXX not #XXX
this is needed for a11y
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4dc75854bdb396fa9214f7cae5e7fffaef035e56
Related to:
https://github.com/CollaboraOnline/online/issues/3645
When we select text with multiple lines - line break
is ignered in the result. Paragraphs will be concatenated.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia7545bbee334a44517c416260f3dd911e0ae8eec
loleaflet: added test-div for horizontal and vertical scrollbar to get position
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I61f5823c26e1dc0a1ec96257bc58cb51bb29024f
- now we switch to minified mode also depending on document size
(not only window size) so when zoom is used we will also switch.
- no longer needed to use minSize property as comments section doesn't
change it's size
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie9ac822ec6fcac7722035083653dd4e90f970559
This is useful to run cypress with the preference
"capabilities" parameter of the developer.....
Change-Id: I1f365ff7cc9790debef44d522c54d0f222680583
Signed-off-by: Henry Castro <hcastro@collabora.com>
Undo/redo behavior changed in core so that text editing has its
own undo/redo stack and the change is applied to the document
stack when text edit mode ends. This test has been changed to
reflect the undo/redo behavior change in the core.
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I6cf427a279aefb79f2f331357731a32c0296c0cd
Undo/redo behavior changed in core so that text editing has its
own undo/redo stack and the change is applied to the document
stack when text edit mode ends. This test has been changed to
reflect the undo/redo behavior change in the core.
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I4a94470543183bb904b095517809e9fd45b63b8f
Conflicts:
cypress_test/integration_tests/common/helper.js
loleaflet/src/layer/tile/CanvasSectionContainer.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9aeb06f1b137ec15061dfa18c40e54a2324703d8
(cherry picked from commit cea7112d29775c4c7c42876a4c3638aad524fe24)
Make the shape path tests more readable and debuggable by asserting the
coordinates in path commands of the shape path rather than on the whole
string. The pixel positions are not stable across the branches (eg.
co-2021 vs cp-6-4 in core) so were are doing "approximate" asserts.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I4ad0c9db32bf0397f1086b3039c7604385e7ca73
(cherry picked from commit c75b7925107664e7e74592eba5efe2dc89e8d09d)
There is a problem with slides that does not fit into cypress tests
viewport. Use the center of the visible area of the svg to
click/dblclick else clicking on the true center the event will not end
up in the svg. For example the click event could hit the slide
sorter(empty space in this case) or the invisible area outside the
viewport.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iefa73f56b67be0b4c251921aa91404dbbfbed671