Commit graph

1045 commits

Author SHA1 Message Date
Pedro Pinto Silva
1c61762b70 cypress: fix: impress scrolling_spec range for assertion
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id1efc7086a03d742d883a66607e713e6db861b7c
2022-02-11 20:25:55 +01:00
Rash419
cd34d9b531 cypress: temporarily disable few NB tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iae5ea1f891a149e49aea0cdea3fcd25317877c06
2022-02-10 14:12:28 +05:30
Rash419
4f0c84f70d cypress: removed explicit wait from row_column_operation_spec.js tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib3a869cd65c80a6dffa2992284cbf46aa3fc30bf
2022-02-08 15:00:41 +05:30
Mert Tumer
924e22635a new mobile-back button cypress modifications
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I3e67bdc84d190edf2819b88dfe7d7630c7b89aba
2022-02-07 18:18:29 +03:00
Rash419
8a83e5c2a8 cypress: fix: input element getting detached
*waitUntilIdle make sure that element remains attached to the DOM
*removed a specific configuration for multiuser tests in makefile and
 now it follows cypress.json config

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2bfd22ef0b4d8306b944d772e3536206a207e00c
2022-01-26 19:19:03 +05:30
Rash419
3f350c6817 cypress: added new tests
for desktop:
added split cell test in table_operation_spec.js for writer, impress
added Image Resize test for writer, impress, calc
added Page break test in top_toolbar_spec.js
added NB support to the image_operation_spec.js

for mobile:
added merge row/column test in impress/table_operation_spec.js

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9b3ccf124f49a2c33f2c1ca3c7c9106d09710bb4
2022-01-26 16:51:13 +05:30
Ashod Nakashian
9e5b9d6d37 wsd: support PDF comment saving during unload with test
PDFs are view_comment type documents where
editing is not supported, but adding comments
are. This means that we do get ModifiedStatus=true
but we never get ModifiedStatus=false after
.uno:Save. This is because the save command is
handled in a special way in Core by invoking
save-as instead, which doesn't reset the
ModifiedStatus.

The issue with this was that DocBroker was
stuck on trying to save the document
before unloading, thinking it was modified
due to the stuck ModifiedStatus. Here,
we change the definition of isPossiblyModified()
to ignore the ModifiedStatus for such documents.
Instead, we rely on the last save being successful
and that no new user input exists past the last
save request.

In addition, we now have a new Cypress test
that reproduced the failure without the fix
and now passes with the fix.

Change-Id: Ida9d486ac93a588b9007c5e4583d8bf3c090a62d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-01-26 15:33:15 +05:30
Rash419
111d5f5483 cypress: fix: inconsistent text wrapping tests in calc
removed unnecessary 'retries' parameters from the tests we already
have default global value for retries no need for specific tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Idc78831ce240d4d840f3dbc785e66165c6e07d3d
2022-01-25 09:58:35 +05:30
Rash419
53a4c4502d cypress: fix: delete column test fail
mobile/wrtier/table_properties_spec.js

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I50cc1381f6d1c93e25d4b26b30c3f8c309e1b3f3
2022-01-11 20:09:53 +05:30
Rash419
c926b81f69 cypress: enable 'Apply font name' test for NB
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7b28eca0663a4187777320cc483d89966b62a5e3
2022-01-11 10:13:36 +01:00
Rash419
0bc12a5409 cypress: give each multiuser test unique document
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia46d0538430010e30649af76cb46846c90de8c1f
2022-01-11 09:28:03 +01:00
Ashod Nakashian
de74eae245 cypress: give each test a unique test document
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
2022-01-11 09:28:03 +01:00
Ashod Nakashian
4a559a6ff1 cypress: close the test document before reloading
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
2022-01-11 09:28:03 +01:00
Rash419
95fc85e54b cypress: fix: NB writer/top_toolbar_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2ef0bcbffbc3644d88a86eb00d61dde548704072
2022-01-10 15:53:49 +05:30
Rash419
fdd2973aa4 cypress: fix: updated all scrolling_spec.js to use range for assertion
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9de24d4e0477ed6263370c331c42e791ea347045
2022-01-05 08:32:42 +01:00
Rash419
9b6f5226e1 cypress: changed defaultStartPoint in writer/shape_properties_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id2cdc03005c4f57f31368e1a94388f1ca6511ee2
2021-12-17 15:28:43 +01:00
Rash419
65bcadb763 cypress:updated notebookbar tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I21ca9ad02e0598fe0e0b9189e59e98f6a9a751da
2021-12-17 11:07:21 +01:00
Rash419
cc429f78e9 cypress:disable repair_document_spec.js temporarily
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I02b42b8943ecfedb5a950d062a0fef2a7e3f3e6b
2021-12-17 11:07:21 +01:00
Rash419
4043b76325 cypress:added retries parameter in some fragile tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia99f75302a988fc2ef744807e01ba6441ff161ec
2021-12-16 13:25:40 +01:00
Szymon Kłos
f73df19d26 mobile-wizard: update css rules id->class #3849
fix regression from:
782fada6c9

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I49195f2c7ec90df0e21c5f5f3caef2103763960d
2021-12-13 22:06:54 +01:00
Szymon Kłos
782fada6c9 jsdialog: use unique ids for unobuttons
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
2021-12-09 16:34:06 +01:00
Rash419
0e0cc8e6b9 cypress: fix: updated all failing spec
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9cee74fde361e8726f4621e52561313f29072205
2021-12-01 19:36:29 +05:30
Rash419
4fa3926103 cypress: enabled and updated multiuser test
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib20c93ec9c45ce234ef974e0cb0bd5323873ac42
2021-12-01 19:36:29 +05:30
Rash419
2bcce2f630 cypress: updated cypress to use WOPI endpoints
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic5e165c4ebae19e48b9e2b9ffb67832ca41ccd76
2021-12-01 19:36:29 +05:30
Rash419
265c275a81 cypress: update help dialog screenshot automatically
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9f3e3c9cc7838f89d5a66a25c1f6dd0ef8f8a946
2021-12-01 11:57:00 +05:30
Rash419
3caec5a43e cypress: enabled and updated all undo-redo and repair document changes for writer according to core changes
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If9de2d0ffb6194a983981a31eac5421a80ff3e57
2021-11-27 15:57:40 +05:30
Szymon Kłos
2c6846270e Hyperlink dialog: use textarea to handle line breaks
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
2021-11-22 09:58:36 +01:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Rash419
2ce0627466 cypress: fix: writer/mobile_wizard_state_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6db2ce276bf6038d2aac86611d7e06731ca47be9
2021-11-18 15:16:58 +05:30
Mert Tumer
5ebabf9f58 rename: loolwsd -> coolwsd only binary
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ia44f7f96bcad7200031ad87f6a6fdd3e361f2808
2021-11-17 18:08:19 +03:00
Henry Castro
4784ca2afe browser: rename 'loleafletframe' -> 'coolframe'
in html/debug.html

Change-Id: I7e14bf9deb140090fbb39c8facfaf9360e5a1a7d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-15 12:21:59 +01:00
Rash419
ba92424ff4 cypress: fix: calc/scrolling_spec.js and disabled image_operation and annotation_spec
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibc65ca6668e59e6d348c8c3167e6fd4e5959c43a
2021-11-12 18:47:41 +05:30
Henry Castro
5e023c745e cypress: rename loleaflet -> browser
Change-Id: I2a68f397e2ef8e392ccea421020a2d3cfaf9d3b5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
ec4772be6f cypress: update Makefile.am
rename loleaflet -> browser

Change-Id: I2d3c309a75147fc6442f0781c7821a39891e3faa
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
a3a567f5b0 cypress: update README file
rename loleaflet -> browser

Change-Id: If8b43f77d21d7f475257f3013642c79737c94fe3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
b8b1c1a7c4 cypress: update .eslintrc
rename loleaflet -> browser

Change-Id: I56f0d506c65dbb095a4259b0d262e2de45e286dd
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
99ac2038bb cypress: update CSS class name
rename loleaflet -> cool

Change-Id: I2eef3661e210e04b89e51ba52e707f16617ec87b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
e0fe47be5f rename loleaflet.html -> cool.html
Change-Id: Iaa28f1269f8192755ec323396ae4ff054529f412
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Rash419
6b4dc708ad cypress: disable all writer undo-redo and repair document specs temporarily
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I1870ba3d9111694e2df756bd9a5b06c54aa8aab3
2021-11-09 17:12:58 +01:00
Rash419
c9f8f32e64 cypress: added scrolling tests for desktop calc,impress and writer
loleaflet: added test-div for horizontal and vertical scrollbar to get position

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I61f5823c26e1dc0a1ec96257bc58cb51bb29024f
2021-11-08 12:49:56 +05:30
Rash419
e6a2a43e72 cypress: added delay in annotation_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibfc46e24054cb042c27611397295d80e31c25eb3
2021-11-08 11:56:20 +05:30
Rash419
09fd9e6b1d cypress: added clone formatting test in calc/top_toolbar_spec
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7e7b0376ab4dfa27e5e8fb7035717e9958272e2c
2021-11-08 11:35:18 +05:30
Szymon Kłos
035620c912 Simplify comments switching to bubbles
- 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
2021-11-06 13:38:51 +01:00
Henry Castro
e3088abe35 cypress: makefile: add capabilities parameter
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>
2021-11-01 09:15:56 -04:00
Rash419
05552c3d99 cypress: fix: unstable delete_objects, sheet_operation, sidebar tests
cypress: skip: failing multiuser/writer/track_changes_spec.js due to bug

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iff736140cb7331d29ab0462a8a542559e98b48af
2021-10-29 17:17:44 +05:30
Rash419
46cbc58c8d cypress: disable tests multiuser and writer
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibcf0cdb6ce86671e379c5b6d4df8f96a3e10434c
2021-10-28 09:52:26 +05:30
Rash419
2460f0d162 cypress: fix: close sidebar so elements don't overlap
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iab554b3866edb4dec0c42f501b9d62e2b5369929
2021-10-25 19:28:27 +05:30
Tomaž Vajngerl
c3b87df81f fix mobile undo_redo cypress test to reflect text edit undo changes
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: Icb71622beb55ba67815aab17d9d9869204ac188f
2021-10-23 11:20:22 +02:00
Tomaž Vajngerl
23a3958b24 fix repair_doc cypress test to reflect text edit undo changes
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
2021-10-23 11:20:22 +02:00
Tomaž Vajngerl
ecf8177efc fix undo_redo cypress test to reflect text edit undo changes
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
2021-10-23 11:20:22 +02:00