Commit graph

1072 commits

Author SHA1 Message Date
Rash419
9d06f8d5cc cypress: re-enable impress/table_operation_spec.js
modify the test to use 2x2 table when testing 'insert column before/after' tests
no idea why we don't get svg when there is 3x2 table

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id927fede691c4483206fa2b65c450f11cc980581
2022-06-06 15:48:08 +03:00
Rash419
82eacd26bc cypress: skipping columns test in impress/table_operation_spec.js
cannot reproduce locally temporarily skipping the test

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2007a2dc643306551be859b1bdcf48982fe4a33d
2022-05-19 13:33:20 +05:30
Rash419
f90fbe23bb cypress: added new function selectCellsInRange
after the jumbo sheet patch selecting entire row and merging all the cells becomes costly and cypress timeouts
therefore select first 100 cells and test the merging functionality

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8568bbdbabdccc55c2938f886619a1d178ae7d22
2022-05-18 19:14:07 +05:30
Luboš Luňák
b999f12500 make cypress tests work also with 16384 columns
Some places tested for AMJ being the last column, but with 16k
columns it's XFD. Without this those tests run in an endless
loop when run with Calc set to 16k columns.

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
Change-Id: I6249e0ec975634b60aaf3291e021b74b4aa3cc5d
2022-05-18 06:59:08 +02:00
Rash419
0a203ad91e cypress: added desktop calc/autofilter_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I48f4ceb591cbdf178b08b44ad1f833b52d5c004d
2022-05-10 22:31:16 +05:30
Rash419
3e095928aa fix:cypress: abort without error in CI
Identified the faulty test, on heavy load the test gets stuck on waitUntil command
skipped the test for now

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia4b7ca081098e7e5b6f15135304131521629e524
2022-05-04 11:13:14 +05:30
Szymon Kłos
256b50e926 cypress: fix after formulabar conversion to jsdialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0792e2b1e044220dc44ae8155ac7b30b47a7ea8d
2022-04-23 10:58:55 +02:00
Szymon Kłos
cbde6f324a cypress: tunneled formulabar was removed
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I040bbc8c9a5c76a367de046acf2a05e6dfb88920
2022-04-23 10:58:55 +02:00
Szymon Kłos
c4f5d2735f formulabar: move buttons to jsdialog implementation
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2ad2c345435453456ad69c036b7d7e5a73a27550
2022-04-23 10:58:55 +02:00
Szymon Kłos
496256a96b jsdialog: remove table- prefix hack
so we will not have problem with updates not catching
widgets with modified name - not needed not

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifa29d3971120482c3dae4ede3db5bcf31ea1af95
2022-04-23 10:58:55 +02:00
Andras Timar
4c7332f44f Fix cypress test after InsertZWNBSP->InsertWJ
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia21c27e80507d7be4b44935e0a7dc225ad0f7776
2022-04-21 15:01:57 +02:00
Mert Tumer
4d5cd2b54b cypress: modify writer/annotation_spec test
now we dont need to click on the collapsed comment
because now after insert comment they will be selected
already.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ica69e5a092f29896c1d872deb384d31b867dddc6
2022-04-18 10:22:31 +03:00
Rash419
4dc39241f0 cypress: fix:ui-expander-label getting detached from dom
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I471d220cd15b66693b6e43bcf5ee83276921ff9c
2022-04-14 13:23:21 +05:30
Pedro Pinto Silva
83b13fd454 Cypress: Do not hard target buttons based on their position
No need to specify if it's first or second button as there is always
only one primary button. On top of that this avoids maintenance work
whenever for some reason the button is not the first in line.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idd3ef60023e88d1a9a8fd6f465dc4c63c068debd
2022-04-03 19:29:49 +02:00
Pedro Pinto Silva
8d9317daa8 Fix button order on HyperlinkDialog
Follow the same order as anywhere else such as annotations, JSdialog or
even tunneled dialogs:
primary action aligned to the left

Also update cypress test: Do not target button position related classes
instead, rely solely on main classes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iac209aa343f22ddfdbd5662eba43d7adaa3f0892
2022-03-28 14:15:44 +02:00
Szymon Kłos
ff7e4a8b3b co-22.05: mobile writer/table_properties_spec.js
- use .unoXXX class instead of id
- check only if height was changed on Optimal Row Height command

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibfa93076237b15e16ae1851e3a66b4b239c42a2d
2022-03-21 09:35:49 +01:00
Szymon Kłos
7e6f3d5590 co-22.05: mobile writer/insert_formatting_mark_spec.js
- add possibility to specify UNO command alias for newer
  version of core so we will call all the versions for
  compatibility of online with many versions of core

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I380fb1d2fd7f63bac297745401fa9d619f693348
2022-03-21 09:35:49 +01:00
Rash419
23f0790413 cypress: change template files tests to assert readOnly
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib557424de7407346ca947bfe06289b772ec46d10
2022-03-15 14:05:12 +01:00
Rash419
42204db587 cypress: removed repeated tests and enabled notebookbar tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2c31b7433559d776dbde179c2659e23d8b104d59
2022-03-15 15:57:18 +05:30
Rash419
4853e46428 cypress:fix: writer/undo_redo_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I03d1f0ded1c177838bd493f11778ee1d4d8c542e
2022-03-10 16:11:05 +05:30
Rash419
3efcffb192 cypress: added open different LO files test for impress, writer and calc
impress: ppt, pptm, pot, potx, potm, ppsx, fodp
calc: xls, xla, xltx, xltm, xlsb, xlsm, fods
writer: doc, dot, dotx, dotm, docm, fodt

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib695e3f235acafd203c7041aecce319cd6efb285
2022-03-08 20:01:45 +05:30
Rash419
25ca214ea8 cypress:fix: coordinate based test failing
writer/shape_properties_spec.js
impress/scrolling_spec.js

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib576e9f4d90ec53dc21c2955d61e8ee85bd3e2ca
2022-03-08 18:29:15 +05:30
Bayram Çiçek
24da346a53 update cypress_test/README
Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: I2c03535d5f27cffeffc75a0f101d0280cc6e50ae
2022-03-01 10:32:49 +01:00
Bayram Çiçek
9e2629b072 Use make's -C argument instead of cd in cypress_test/run_parallel.sh
Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: I781070c32d89c329effbc233cf356fe983b85c1e
2022-02-28 15:42:28 +01:00
Rash419
820d135329 cypress: fix: mobile/writer/shape_properties_spec.js failure
changed defaultStartPoint

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I5a6947d233b7fb95052722a921becbd162c6a6ae
2022-02-23 16:46:03 +05:30
Marco Cecchetti
a217a6fbaa cypress test for fullscreen presentation white spaces
Google chrome doesn't render white spaces correctly

This is a set of tests for the core fix

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I7edb0490f1b56ac2c5ab2d60fa5cf25ab7946745
2022-02-22 16:25:09 +01:00
Ashod Nakashian
f8b05a0f83 wsd: support unattended runs
With --unattended, do not wait for a debugger
upon seg-faulting. This avoids the unnecessary wait
that prolongs failed unit-tests in automated runs.
Now run_unit.sh and Cypress Makefile set this flag.

Note that the wait only happens when in debug
builds, or when envar COOL_DEBUG is set. This
prevents us from waiting when running a debug
build where we can't see the output, or indeed
the run is on a CI build machine.

This flag can also be used by devs when reproducing
failures where there is no interest in attaching
a debugger. The logs are shorter and more
readable, too. At least in trace level.

Change-Id: Ice15482c6724abc47f5955402295198eb7f671ee
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
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