Commit graph

648 commits

Author SHA1 Message Date
Tamás Zolnai
85291d9cfe cypress: add a top toolbar test for desktop.
Change-Id: Iff8ee5d737d66748e22000e8ae728cbb162cbef0
2020-10-07 14:12:56 +02:00
Andrea Gelmini
9d01540680 Fix typos
Change-Id: I7d487f32ca43e19023760ef3c6bb1683607f93d1
2020-10-07 12:51:08 +02:00
Andrea Gelmini
596b26c7d9 Fix typo in code
Change-Id: I0ef8fe7ff382d7cb295aa8054721448d9bf8e477
2020-10-07 12:46:37 +02:00
Tamás Zolnai
6a045f0321 cypress: test also 'minus' button of a spin field (mobile).
Change-Id: I22a2864060004a466c32e790075b879317f6b0fd
2020-10-06 08:59:42 +02:00
Tamás Zolnai
a82c05e74b cypress: test new slide button on mobile.
Change-Id: I1484b0340585073b50db0e29ba4a565200aab138
2020-10-06 08:59:42 +02:00
Tamás Zolnai
a49c175504 cypress: test setting automatic color on mobile wizard.
Change-Id: I31854980ae1dc3065f297b80d3287aa1fae999b6
2020-10-06 08:59:42 +02:00
Andras Timar
25764d83ca change git repo URL and product name in package.json files
Change-Id: I15b786fa1fb3be78c4fe6e83777fc7df396de434
2020-10-05 14:04:40 +02:00
Tamás Zolnai
55c75144f7 cypress: fail on missing LO installation.
Jenkins sometimes does not work properly and core
installation is not accessible for online build.
In this case the test build was passing without
actually run the tests. Fail on this instead to
avoid getting untested patches in the code repo.

Change-Id: I35c49562dfeaeda5f6c8aa4bd3a746b1f04de3ea
2020-10-05 13:32:12 +02:00
Tamás Zolnai
9d6d7eb60f cypress: import cypress-wait-until module everywhere needed.
Change-Id: I8f278061332493d5af6cce727c4726d86be110f5
2020-10-02 19:13:02 +02:00
Tamás Zolnai
06ec6b7a62 cypress: remove workaround in calc helper method.
Issue was fixed in:
328ed48117

Change-Id: Ie6a98a51e6993b3582c6e47439ecaaf392873539
2020-10-02 19:13:02 +02:00
Tamás Zolnai
3a3a0f88dd cypress: update 'Copy and Paste text.' test.
Change-Id: Ib9bb80569ccb00d8b79edb27ce75590c1a9b8f3e
2020-10-02 19:13:02 +02:00
Tamás Zolnai
e475ff7cd9 cypress: update 'Shape related focus.' test.
Change-Id: I9dec33efadf5e6651cf75cf10f7af02114e34260
2020-10-02 19:13:02 +02:00
Andras Timar
34bc966d68 change product name
Change-Id: Ic34d324c952364442d3f4f9f0758676ab57c8a9a
2020-10-02 14:18:28 +02:00
Tamás Zolnai
4370817eea cypress: reenable sidebar existance check.
Issue was fixed:
4f41ac6096

Change-Id: I1d67ebae3b4d529e8e9b5060dbb107dd67f92851
2020-10-02 13:47:04 +02:00
Tamás Zolnai
a460dab972 cypress: remove workaround for getting initial tile.
Let's check the canvas to exist and wait until the
first tile arrives and so the canvas is not fully
white.

Change-Id: I7102298a406d61246fc40a0842bafb2cd124d81e
2020-10-02 13:47:04 +02:00
Jan Holesovsky
26fc803a0e Use the CanvasTileLayer for all rendering.
Fixes problems particularly with the new Chrome where the original
approach to tiles can be causing blurry text.

Change-Id: Icf598df0e997d493b111fad1c59e7dcb5f376801
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103681
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-30 20:16:45 +02:00
Tamás Zolnai
e99afd6ce5 cypress: enable some table related tests.
Change-Id: I48b27d1ae042d03feef71c550cc0fdef8459e201
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103624
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-29 18:52:36 +02:00
Tamás Zolnai
54dde3108e cypress: fix test suite name.
Change-Id: I23223cc36437dfdb3e5aa3e73979874f6424a986
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103623
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-29 18:52:26 +02:00
Tamás Zolnai
18c5736964 cypress: add chart test on mobile.
This use case is crashing now, so let's disable it
for now.

Change-Id: Ie63af52eed39c6235f628687f93372ef526319c6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103555
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-28 16:43:06 +02:00
Tamás Zolnai
09aa1c17e1 cypress: NC: test restoring a document's previous version.
Change-Id: I7cabd7138dbabe870382603b5ad9d5415c9db21c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103412
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-25 19:45:53 +02:00
Tamás Zolnai
391b8b7fd7 cypress: NC: extract some helper methods for nextcloud specific features.
Change-Id: I47b1811ce08888501733544eaa42b8b117a08a8c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103292
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-24 10:59:07 +02:00
Tamás Zolnai
bfc7266395 cypress: check close/edit button state on mobile.
Change-Id: I576f2d8358fd922a10fd4a9e846dd28b49191cb3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103291
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-24 10:58:53 +02:00
Tamás Zolnai
02be3eaa94 cypress: NC: test nextcloud specific features also in Impress / Calc.
Change-Id: I47c5a318239c2b5c96f1bf8f69298d3369f67d43
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103290
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-24 10:58:44 +02:00
Tamás Zolnai
11b384b195 cypress: NC: test nextcloud specific features.
Change-Id: I52bc1709f29de1d69c2ae52c806bedad4eee8bc4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103254
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-23 16:41:44 +02:00
Tamás Zolnai
1d26d6513b cypress: disable multi-user tests for NC / php-proxy.
Change-Id: I3393a1fb0b998bd82295d6d566594ed05af50634
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103102
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-21 14:49:21 +02:00
Tamás Zolnai
95fbcdebed cypress: fix stopping test run in interactive test runner.
I reported the issue. Let's have a workaround until,
the bug fix is released.

Change-Id: I7d7719d311e0c0584b7d6e710286f28962d00a96
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103038
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-20 14:23:08 +02:00
Tamás Zolnai
5b6c0b8e1c cypress: NC: update afterAll method for mobile.
Newly close button does not actually close the document,
but steps back to read only mode. So we need to push it
twice.

Change-Id: Ic38f1e658396d9afe49496cfb75aa68df1c4623f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102997
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 14:12:26 +02:00
Tamás Zolnai
5c2f5eac2e cypress: use built-in test retries.
It's more effective, since it reruns only the failing test,
not the whole test suite. Also it has a nicer output.

Change-Id: I8a50a20366b76a5cedb4e9383220c53f367c5a68
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102995
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 12:50:45 +02:00
Tamás Zolnai
ea8c2eef02 update wait-on: 4.0.0 -> 5.2.0
Change-Id: Ia9f9b1ef51bfb88879e2a66eca30282eb58c6eb4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102994
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 12:50:37 +02:00
Tamás Zolnai
1e6dcf05d8 update cypress-log-to-output: 1.0.8 -> 1.1.2
Change-Id: I2e69d0cc24a32f44be7767ceca1ffe0d42ee5285
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102993
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 12:50:29 +02:00
Tamás Zolnai
03a65ba7f1 update cypress-file-upload: 4.0.7 -> 4.1.1
Change-Id: I312aa63f0fe394032fe06e9248a5a4da9eec6de1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102992
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 12:50:04 +02:00
Tamás Zolnai
5b1b66ac51 update cypress: 4.12.1 -> 5.1.0
* Fixes random failures in interactive test runner.
* Introduces test retries, what we did with an own script so far.

Change-Id: Iab5c32e854618a694e7d10d3c92c1c6c32465983
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102991
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-18 12:49:59 +02:00
Tamás Zolnai
011efb4ac4 cypress: improve moveCursor() helper method.
Change-Id: I41b781a2cd2f413b4daea979478351d29588fda3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102966
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 19:10:54 +02:00
Tamás Zolnai
d29ad2b57f cypress: update tile / marker positions.
It seems the tile container was moved to right with one
pixel. Update the test accordingly.

Change-Id: Ie8c370419e0b19abaafda379e95f405eea27b64f
2020-09-17 15:03:54 +02:00
Tamás Zolnai
584d50b8ea cypress: add some note to README about php-proxy.
Change-Id: Iecbd80f9d145bf5c9d617f6ce6ada94c0bd9d91b
2020-09-17 14:46:28 +02:00
Tamás Zolnai
08ae0508f2 cypress: php-proxy: blacklist formulabar related test.
Change-Id: Ia5224adc358d6099056ee0b9938ab8b50e7f4e80
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102893
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 13:17:12 +02:00
Tamás Zolnai
228d8af563 cypress: php-proxy: blacklist table related tests.
The application freezes with tables, beacuse of an
invalidate tiles loop. With php-proxy the lot of invalidate
tile messages blocks the execution.

Change-Id: Ife08b7cb335afc69108d970a8f0147be1ae9d90e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102892
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 12:23:45 +02:00
Tamás Zolnai
1fa089901e cypress: php-proxy: fix shape related tests.
Change-Id: I59e115785357e213346c9c403dc3078ef0b2b706
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102891
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 12:23:32 +02:00
Tamás Zolnai
980e2a1649 cypress: php-proxy: fix insert header test.
Change-Id: Id04c35fcdf465ab2e56d1803808d2a0afffef6d6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102890
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 12:23:19 +02:00
Tamás Zolnai
bdcfb9a1f0 cypress: php-proxy: blacklist image insertion tests.
For some reasion cypress image loading mechnism is not
working with php-proxy. Without cypress image insertion
works. So now I disable this test, later we can fix-up
cypress test to handle this scenario.

Change-Id: Id1b62f28b3f0cdfe9e26cc96dbafcbacbf472be8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102889
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-17 12:23:05 +02:00
Tamás Zolnai
328ed48117 cypress: php-proxy: select a row to remove text selection.
Instead of selecting a column. Selecting a column means
1048576 cells, which makes things slow. While selecting a
row means only 1024 cells, which won't slow down the
execution. This issue becomes more visible with php-proxy
since it's even slower.

Change-Id: I67828dcba250b2d04053cd44c6f8c83e7a466792
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102749
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-15 18:20:40 +02:00
Tamás Zolnai
8899b58745 cypress: php-proxy: fix text wraping test.
It could fail without php-proy too, but php-proxy
slows things down and makes this issue more visible.

Change-Id: I6bda9bfd195b28c797b0690e05cddf3f0ee98e12
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102750
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-15 17:05:14 +02:00
Tamás Zolnai
03ce16f47c cypress: NC: fix writer page orientation test.
Change-Id: I32e946388f06b3412d54c37dd556976dff362aa7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102734
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-15 15:47:26 +02:00
Tamás Zolnai
f6d5cf9c3f cypress: support running tests with php-proxy.
Change-Id: I9fe4a974582e0475026f6798a338bae033e6d7e6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102733
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-15 15:40:22 +02:00
Tamás Zolnai
f0ad3cad53 cypress: fix random failure of date / time field insertion test.
Change-Id: Icc7d28ab1c436d4dc7fc32c7a6ecb3fdc98281d9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102656
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-14 12:15:19 +02:00
Tamás Zolnai
9f7cf27f7b cypress: NC: document running tests with nextcloud.
Change-Id: I9f2075e36c6d569537cf2c11cc99eb31dbd1f84f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102484
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:29:02 +02:00
Tamás Zolnai
beb84fb38c cypress: NC: fix copy&paste desktop test.
Change-Id: I5cd8ad2fe6682e34100fdc0409c2792acd115566
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102475
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:52 +02:00
Tamás Zolnai
5bdab937e1 cypress: NC: fix undo / redo test in Impress.
Change-Id: Iac2d6f9a31206eec162b869629e77157daeec5c8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102474
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:43 +02:00
Tamás Zolnai
8bd07b2bf3 cypress: NC: simplify text shape check.
Change-Id: I426afb5d8322061db78e1e354d199b6741eee3a2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102473
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:35 +02:00
Tamás Zolnai
3aca775a04 cypress: NC: make assertCursorAndFocus() work with NC.
Change-Id: Ia77779248cf3c40fd3e269318215ac689fcb0de4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102472
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:24 +02:00
Tamás Zolnai
142231151a cypress: NC: blacklist some tests.
In NC environment we don't handle cy.document() and
cy.window() well. Disable related tests for now.

Change-Id: Ibb9a9783bf1718a030d10fc69f8b7653fb12bc15
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102471
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:12 +02:00
Tamás Zolnai
45ac93575b cypress: NC: don't test local related part of formatting.
'1033' means en-US here, but we don't need to test this,
so it won't be a problem to have a different local settings
inside NC.

Change-Id: Ifcd3798b7356b7d80a994f9d00280a6039cea5a5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102470
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:28:00 +02:00
Tamás Zolnai
69645b9697 cypress: NC: delete exisitng test file more effectively.
We could not remove the existing test file, if there are
a lots of files in the NC storage, because in this case
not all files were displayed on the screen and so we could
not know whether the file was there or not.
So instead we remove all files, what we can do easily.

Change-Id: Iae7a8ee5c2064ecd94c29d990b7507001827b0dc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102469
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-11 18:27:42 +02:00
Tamás Zolnai
ebd040cacb cypress: support running test with nextcloud integration.
Change-Id: I0b2255225a6c0eca5317559df33bb12b841dac08
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102260
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-10 14:03:24 +02:00
Tamás Zolnai
0d7a58aa57 cypress: add 'make check-proxy-mobile' command.
To run mobile test with php-proxy simulation.
It's an initial command, should be improved later,
after php proxy simulation nicely works with the
tests.

Change-Id: Id9d2bacfbf09ca34a2c84e0d32808749df4c1909
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102321
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-09 15:50:35 +02:00
Tamás Zolnai
b027150707 cypress: disable unstable test.
Change-Id: I3358c38d11692bcd7e08aa79fd6a9e95c6509654
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102259
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-08 16:39:58 +02:00
Szymon Kłos
70827c372c Simplify download process
Use hash to identify download and pass that to the client.
This allows us to reduce parameters for download requests.
DocBroker maps download ids to URL in the file system.

Change-Id: I254d4f0ccaf3cff9f038a817c8162510ae228bc5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101992
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-09-07 15:00:20 +02:00
Tamás Zolnai
928d675270 cypress: test search field's focus when we type fast.
Change-Id: If8523238aa5fed258fd93e8a9bcca03ed3490455
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101989
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-03 10:52:05 +02:00
Tamás Zolnai
95bc84e748 cypress: remove outdated comment.
Change-Id: I132ec38feacc5450e0b31d910b8f29e09dca2a66
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101988
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-03 10:51:54 +02:00
Tamás Zolnai
433b108c50 cypress: simplify this.
Change-Id: I4b055f13caebd7f034c4aa8aea724aff300c113d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101766
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-01 00:20:18 +02:00
Tamás Zolnai
b16182c3c3 cypress: correctly append "Second chance!" string to the output.
Change-Id: I193b4b916babcda4e321b9c83e0301cc8a4b947f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101734
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-31 15:41:03 +02:00
Tamás Zolnai
9136bda96e cypress: use nonambiguous line style here.
Change-Id: I8679fb78a2af530692e91a84bacf2879506848ab
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101735
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-31 15:40:54 +02:00
Tamás Zolnai
d6005f0947 cypress: add a way to run tests with different browsers.
e.g. CYPRESS_BROWSER="firefox" make check

Change-Id: I3017179152c6e875df667da5081abb0c8cde60b1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101733
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-31 15:40:44 +02:00
Michael Meeks
ab0538bf30 Enable cypress search / focus test.
Change-Id: I9f6482d80fac4dae677dcb471deff3b3575dbbfd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100986
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-08-19 14:24:19 +02:00
Tamás Zolnai
8d3209dd1e cypress: add log lines to impress helper methods.
Change-Id: I64289fa556e12142400bca07ff9d45f2b2df72cd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100757
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-14 21:33:39 +02:00
Tamás Zolnai
15444dbf33 cypress: improve removeShapeSelection() method.
Instead of using a click() and a dblclick() method, do
click() repeatedly, until selection is actually removed.
For example, it takes ony click when the shape is selected,
but no text is selected inside it. It takes two clicks when
a text also selected and sometimes when selection stucks it
takes even more click.

Change-Id: Ic017d0f5b623de29343cf171a8f4d64988fdb721
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100756
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-14 20:44:39 +02:00
Tamás Zolnai
6d239a3a9f cypress: improve selectTextOfShape() method.
Sometimes double clicking inside the shape does
not makes the shape to step into text editing mode.
To avoid this kind of issue, we can click more times
until we get the cursor.

Change-Id: I4a9671c299144bd8ca250b575665538ab14758ad
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100755
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-14 20:37:58 +02:00
Tamás Zolnai
0134d74b45 cypress: improve typeIntoDocument() method.
Change-Id: I9e28a44a42596624c6c40984581e97679fad63b3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100754
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-14 20:37:47 +02:00
Tamás Zolnai
0139a7c2f4 cypress: improve selectAllMobile() method.
A bug occures when we remove a column selcetion.
The document freezes for seconds before it is
updated. Let's workaround it in cypress tests,
until it's fixed.

Change-Id: I5436c969655260d377d4ce47c86270ef15a15c2f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100740
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-14 14:31:12 +02:00
Tamás Zolnai
a3da55a28d cypress: avoid random failure of slide operations tests.
It seems there is a bug in sidebar showing code,
that it's not always shown by opening a document.
So instead of checking the visibility of sidebar,
just wait some time to finish document load.

Change-Id: I9d94b7fe085f4dfcf366789e27ab1bb388bf13b1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100675
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-13 20:23:30 +02:00
Tamás Zolnai
815802e6e0 cypress: improve typeIntoDocument() helper method.
First grab the focus to the textarea, otherwise
the force: true flag leads to unexpected behavior.

Change-Id: Ic99bb1b22734733d7bb40b895173e5382c2ba5f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100605
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-12 19:59:35 +02:00
Tamás Zolnai
8b35a4618f cypress: improve calc column selection methods.
Searching '-8px,' is not stable, because sometimes it's
'-9px,'.

Change-Id: I6226a1ec3086b84540d74cb1c7691cf355752337
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100600
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-12 16:51:31 +02:00
Tamás Zolnai
dbe8502a58 cypress: introduce typeIntoDocument helper method.
It was not consistent what we used to type into the
document (e.g. 'body', 'textarea.clipboard' or
'#document-container'). Also we need to use force
parameter because 'textarea.clipboard' has no actual area
which makes cypress fail with: '`cy.type()` failed because
the center of this element is hidden from view'.

Change-Id: I04e0a82ed8450d583e407715fde1855197cae109
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100574
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-12 14:59:30 +02:00
Tamás Zolnai
e4a40a515b cypress: stabilize simultaneous typing test.
Change-Id: I1ce16b16fcab38fd63255d18de257ece5977c9be
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100544
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 19:26:42 +02:00
Tamás Zolnai
4c2ba4ae57 cypress: stabilize form field tests.
Change-Id: Iceeb8ff6231fc401943c4be8835955a50278cf17
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100530
Tested-by: Jenkins
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 18:47:50 +02:00
Tamás Zolnai
a6e2ca1780 cypress: improve moveCursor() helper method.
Allow zero as cursor position.

Change-Id: Icfcae959ab011b2e8ad76db424552a152d4267dc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100500
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 18:44:11 +02:00
Tamás Zolnai
4f31743307 cypress: add focus tests for search field.
A known issue is that when the sidebar is updated
the focus is grabbed from the search field.

Change-Id: I762de7c6498f5b015465af325a24996719caeae1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100477
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 14:56:22 +02:00
Tamás Zolnai
8aab73a4e2 cypress: wait for the sidebar after load in dekstop tests.
The sidebar is opened after the document is opened.
Opening the sidebar affects the whole layout, so better
to wait until it's finished before we start to interact
with the document.

Change-Id: I15537e8823d1c6c80fb586eb3560103b9173f37c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100442
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 12:09:14 +02:00
Tamás Zolnai
b56cff6520 cypress: introduce make check-firefox command.
To run all cypress tests inside firefox browser.

Change-Id: I965666e8b6b7aad5a45d1fef4fc9a078aa30615d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100441
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-11 12:08:58 +02:00
Tamás Zolnai
cfc62f864d cypress: use actual LOOLWSD version hash.
The related issue was fixed upstream.

Change-Id: I8b1191d3c0d5543233ace9322a7d768b3424d62d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100435
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-10 15:37:46 +02:00
Tamás Zolnai
76c2481190 update cypress: 4.9.0 -> 4.12.1.
Change-Id: I97e94f32697cac9002aa34632b6a80f8c6a0e127
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100434
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-10 15:37:37 +02:00
Tamás Zolnai
9c312a4cc6 cypress: group multi-user tests based on component.
Change-Id: Ic2689b8e05c9827807585a4a718f112e23d1e5a5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100324
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-07 15:37:14 +02:00
Tamás Zolnai
3753406ed2 cypress: update error message with multi-user interactive runner command.
Change-Id: Iccaa3fd3fd27133b21a099e463debb3e4d226c5f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100312
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-07 14:59:49 +02:00
Tamás Zolnai
a773fa6ab6 cypress: stabilize slide properties test.
This is a bug in the code, that after reopening the mobile
wizard it shows bad options.

Change-Id: I587c0181ac3e8f67b8cf27c190b9f4dad6f748d5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100276
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-07 02:29:26 +02:00
Tamás Zolnai
bfbdad2984 cypress: use moveCursor() for form field tests too.
Change-Id: Icf6ca70cc5b4afde36cca05d2dca0c078e714fac
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100275
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-07 02:29:17 +02:00
Tamás Zolnai
eb179113e5 cypress: introduce moveCursor() helper method.
Change-Id: I67a1e74fe03e464e71100428969f9458b8a018a2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100179
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 19:00:28 +02:00
Tamás Zolnai
8c6e24b565 cypress: simplify interactive runner rules.
Change-Id: I491eb0c78429981b05a888975380857f7bce8dcd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100168
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 14:56:39 +02:00
Tamás Zolnai
c34aca2588 cypress: add make run-multi command.
To run multi-user tests in interactive test runner.
It has two non-optional parameter. 'spec' defines the
test file and 'user' defines which user is run in the
interactive test runner. The other user is run in the
background.

Change-Id: I8612c201d7d3aeb2bdadd9d3786fb8eb0b60ab55
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100167
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 14:56:17 +02:00
Tamás Zolnai
ef96bd89ab cypress: stabilize simultaneous typing test.
Change-Id: I699e0b78583d41be273992fa4aa48b91da1a4e6c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100166
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 13:50:00 +02:00
Tamás Zolnai
f273888598 cypress: update run-cov command to run multi-user tests too.
Change-Id: If13dea05f5a506331f9f76177655ed65716d391e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100165
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 13:48:16 +02:00
Tamás Zolnai
9d51a1dc3f Fix typo.
Change-Id: I78aa76ece24c22f19f1687d350e0687b59fff95c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100164
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 13:40:24 +02:00
Tamás Zolnai
3f55e78f46 cypress: make this custom timeout also relative to the default value.
Change-Id: I9a8dcd68c31ecd57d8d8fec880dd74e99d922b96
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100163
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-05 13:40:14 +02:00
Tamás Zolnai
f657321d2b cypress: don't copy the test file by the second user.
We use file copying to create a clean test document
in the working directory. We don't need to do this twice,
the first user will do it first, then the second user
will open the same document.

Change-Id: Ide01b162b0c6a2b3a694706848c3ce93758f3f22
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100125
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-04 19:04:56 +02:00
Tamás Zolnai
387d2a10b2 cypress: wait more time for closing the document.
Change-Id: Icbfef53b630e2a0317e346f40f47f88b694fb909
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100049
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-04 11:59:55 +02:00
Tamás Zolnai
036cc02d00 cypress: add slide operations multi-user test.
Change-Id: I91a4a1ab581080d4b22c7b03224da4f48e157312
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100006
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-03 18:20:05 +02:00
Tamás Zolnai
e65ae5de93 cypress: add sheet operations multi-user test.
Change-Id: Iea31a01d5c85ada481711f771c3489c6aace6e61
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99979
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-03 15:33:08 +02:00
Tamás Zolnai
1d39969a9a cypress: extract openTextPropertiesPanel() method.
Change-Id: I14f424d3141d596f982cda349df786dd8940b6c1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99977
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-03 13:58:24 +02:00
Tamás Zolnai
210118a40a cypress: simplify beforeAll() methods.
We don't need an explicit parameter indicating the platform
type (e.g. mobile, desktop). We can check the userAgent to
get that information.

Change-Id: Ibbc041c4a389cff92203d245f55268ec4e93b0a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99889
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-31 19:06:31 +02:00
Tamás Zolnai
f05e53af07 cypress: fix calc's bottom toolbar test.
Fix 'detached from DOM' error. In Calc we have a small
flickering of the bottom toolbar, because we have also
the formula bar appearing after editing is enabled.

Change-Id: If642d6ae0aae0fcc761382567a2d2e37ad3bf486
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99888
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-31 19:06:09 +02:00
Tamás Zolnai
1604fa99f8 cypress: update sidebar visibility test.
Test less which might make this test more stable.

Change-Id: Icf11af96bc5d21a14f0a74a641ffed3f91b6e482
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99783
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-31 12:51:22 +02:00
Tamás Zolnai
c99f2232b4 cypress: introduce ENABLE_VIDEO_REC flag.
We can enable video recording with this flag,
during a headless test run, so we can see what
happend on the UI.

Change-Id: I4558563a3de71742d8d6b1ca67f0c518d543afc7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99787
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 15:26:47 +02:00
Tamás Zolnai
c3d17108bf cypress: update run_iteratively.sh script to work with multi-user tests.
Change-Id: Ib817152deaa421bd25ae8c703edbf0cf2facd6fd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99782
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 15:26:31 +02:00
Tamás Zolnai
5b106d9edd cypress: fix-up check-multi command.
We need to introduce separate rules to dump
the log and to dump out the error message.
Otherwise GNU make evaluation breaks the workflow.
It evaluates $(wildcard $(ERROR_LOG)) before the
test were actually executed. So first run the tests,
then dump the error output and then go into error state.

Change-Id: I0f8e5de6800f0691cca14019819972437a741382
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99781
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 15:26:19 +02:00
Tamás Zolnai
d43c97a9ef cypress: make simultaneous typing test more stable.
Sometimes this text contains an additional end line character.

Change-Id: Id58eab9ea3b082781cdd8ec341fa2b058ba3b17e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99770
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 15:26:05 +02:00
Tamás Zolnai
02b4bd2fd8 cypress: disable this unstable test for now.
Change-Id: I9c339ac23b2ec9a732f4ceb9efe4b66024b70f23
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99775
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 11:29:24 +02:00
gokaysatir
b8ef29e554 cypress: Bottom bar click quick views test.
Change-Id: I54d5d819f04890fd7ac666728258804d1bb0d93a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98975
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-30 10:50:31 +02:00
Tamás Zolnai
fd6b984a3c cypress: introduce make check-multi command.
To run multi-user tests only.
- make check-multi runs all multi-user tests.
- make check-multi spec=sidebar_visibility runs
only the test pair with the specified name.

Change-Id: Idada04960a6a2d33c7f36ef57bc1d6a1d1cffa99
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99682
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-29 14:26:51 +02:00
Tamás Zolnai
27d3055dcf cypress: add a simultaneous typing multi-user test.
Change-Id: Ib4c410f95443c3775626465d474f52499705da97
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99676
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-29 13:00:28 +02:00
Tamás Zolnai
6cfe358fc5 cypress: rename test file to match with the test name.
Change-Id: Ifaee988ac9abf8f5862d1e54b6a5bc7f7158cd0c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99632
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-28 18:31:11 +02:00
Tamás Zolnai
8ee8f1e1bd cypress: add sidebar visibility multi-user test.
Change-Id: I790a2c149face5fc4899f183833c99471ceb20e1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99631
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-28 18:31:04 +02:00
Tamás Zolnai
f980eccde2 cypress: update multi-user test case.
Change-Id: I8e73c41df35b92305e31fd3c5e35d5c15ae6e8e8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99518
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-27 23:19:23 +02:00
Tamás Zolnai
bda83c263b cypress: better way of running multi-user tests.
Before we used the GNU make implicit parallelization
which triggered by recipe structure.
Instead of that we use linux's bakcground process
feature and run one client in the background and
the other one in the foreground.

Change-Id: I9de899686ae67b47eee005f157b6622ae4c5fe33
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99484
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-27 23:19:14 +02:00
Tamás Zolnai
439b4af8ad cypress: better way of detecting error during parallel run.
We used to grep for error messages in the output, but
it can change what is written out. Better to catch if
the command fails directly.

Change-Id: I8c3cba212b262227551876bfb23629a243424c39
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99365
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-27 23:18:59 +02:00
Tamás Zolnai
09abe6724f cypress: extract parallel test running code to a shell script file.
Change-Id: Ice856737b5b4bcfc6a202b507a03fdfa16938c25
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99364
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-27 23:18:50 +02:00
Tamás Zolnai
735a5a7f8b cypress: make multi-user test case more stable.
Adding a comment was not stable. Let's just change
some paragraph properties to check multi-user interaction.

Change-Id: If923312de2c85b8897bc7a0af1f8e3f560576cc0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99376
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-26 15:09:17 +02:00
Tamás Zolnai
5b70bcd4d3 cypress: avoid spaces in core version string.
It causes issues when passing this string as a
command line argument.

Change-Id: I9af569c8ab941f392800c3c678085c384bec2908
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99374
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-24 15:30:29 +02:00
Tamás Zolnai
514aca9e01 cypress: multi-user test case.
Change-Id: If2ee00c1e43b3cd854b83c762b74b2b8fee6d821
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99073
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-23 17:29:03 +02:00
Tamás Zolnai
1230748099 cypress: document used npm packages.
Change-Id: I13d3fd4add5993351e5d5e72a984e4aff522b748
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99072
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-20 18:16:04 +02:00
Tamás Zolnai
86f2db47a4 cypress: add an option to dump only console.error() messages.
With the ENABLE_LOGGING flag we get all errors coming from
the browser, which is a lot. So I introduce ENABLE_CONSOLE_LOG
flag now, which dumps only console.error() messages, so we
can debug the client code easier when we run a test in headless mode.

It will be useful for multi-user tests, where we can't use the
interactive test runner, because we need to run more users at
the same time.

Change-Id: Icfa62412b83e37398c54e9ac7b4120d76a87fb92
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99071
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-20 18:15:55 +02:00
Tamás Zolnai
1061d10907 cypress: use the *_spec.js pattern to filter test files.
We use the same pattern in the make file for parallel build,
let's us the same here in cypress config.
It also allows us to use different name for helper files.

Change-Id: I6718cd5221d4c35a259c61a70d7685327a16400c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98940
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-17 11:16:30 +02:00
Tamás Zolnai
baafb28002 cypress: split some bigger test suites.
Change-Id: I91a129f2f2c65c5190c22a47ff467d26a8047654
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98907
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-16 16:49:13 +02:00
Tamás Zolnai
28ec6eda33 cypress: fix date field insertion tests in impress.
Change-Id: I9fd03b2b1a4027640750bdeecab45101ce3ece4f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98903
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-16 14:15:33 +02:00
Tamás Zolnai
3cefcd2665 cypress: improve waitUntilIdle() method.
Use smaller time intervals to check how long the item is
idle. Use a smaller (e.g. 1000) time for making a decision
about the item's idle state to make tests faster.
We can increase this time for those use cases where this
time is not enough.

Change-Id: Ibf03197c7bccc3cd718b67b73d52d9b9b54e875e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98733
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-15 15:48:26 +02:00
Tamás Zolnai
af091dbb1a Revert "cypress: update writer shape related tests."
This reverts commit f3572dc988.

Change-Id: I2b12aaa4c4ace0119be98e6d46ce95fdd1ac0f73
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98732
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-14 15:46:44 +02:00
Tamás Zolnai
f3572dc988 cypress: update writer shape related tests.
Change-Id: I9be13d65d054320e473a9060ab4353bd08b476fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98671
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-13 21:18:56 +02:00
Tamás Zolnai
0749bc4398 cypress: disable this unstable test.
Change-Id: I7d1ae4aef00c09ad6b02e34922520b48c2cd4641
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98557
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-11 15:06:59 +02:00
Tamás Zolnai
58521f42c4 cypress: disable this unstable test.
Change-Id: I4682f00e7592f6aba5ef5a1e9bdd99339416c1e0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98536
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 19:26:10 +02:00
Tamás Zolnai
a8e25571b1 cypress: add slide operation tests (mobile).
Change-Id: I0ee6ee840c381263315305336e01f46dfdbcf1f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98525
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 18:30:23 +02:00
Tamás Zolnai
4fd2d2c56a cypress: some more tests for impress's hamburger menu (mobile).
Change-Id: I3eb5afe1e67911b71e3152181c38eb2a2f9016f9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98524
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 18:30:13 +02:00
Tamás Zolnai
e88e72ead9 cypress: use bigger wait time to decide whether an item is idle.
Change-Id: I7d31c83b2438615b6fca9a9d8fb0f62a99728ddf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98483
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 13:00:59 +02:00
Tamás Zolnai
dea7f6cd05 cypress: use OnIdle methods in search dialog related tests.
Change-Id: I94af320ea9fbcf17e765518f33995032ac90a892
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98428
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 12:50:38 +02:00
Tamás Zolnai
4a8832172e cypress: disable this unstable test.
The height input field is sometimes just disabled.
Might be a bug in the code.

Change-Id: I1d8dd5dabb1dee33606cab764b05657f4ce9df23
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98438
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-09 16:36:40 +02:00
Tamás Zolnai
b48e9ec349 update cypress: 4.7.0 -> 4.9.0.
Change-Id: I3d1763b171d7163d7a96343f0687a2d64c61e062
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98431
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-09 16:36:33 +02:00
Tamás Zolnai
d15e0dea8e cypress: fix removeTextSelection() helper method.
Change-Id: If0b254eca495b57c8697ad17a53d0f7e952c6fba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98430
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-09 15:34:55 +02:00
Tamás Zolnai
fb316d601e cypress: add some tests for impress's hamburger menu (mobile).
Change-Id: Idc747ac6ebb47b2ec2da086ba7e597d3bc396bf1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98427
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-09 15:34:42 +02:00
Szymon Kłos
d12cc35045 Make cell markers less heavy on desktop
* Don't show selection resize markers for single cell
  selection on desktop
* Use smaller autofill marker on desktop, for single cell
  show it in the corner like in the core

Change-Id: Ic36c16213532ec8b615ee808f836b939f35245fd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98420
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-07-09 13:15:29 +02:00
Tamás Zolnai
dc5c44f712 cypress: avoid failure of time field insertion (impress, mobile).
Change-Id: I0330ae701a8d6a84f2cb57bc5ccef88f9fe56ecf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98394
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-09 09:09:13 +02:00
Tamás Zolnai
4a9ae82497 cypress: reenable some shape related tests.
Change-Id: Ic21b812cf8c0370dcab9e8474f30206a2b88f70a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98381
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-08 18:27:10 +02:00
Tamás Zolnai
b15f641297 cypress: introduce clickOnIdle() and inputOnIdle() methods.
This method waits until the item is idle,
e.g. not detached for a while. Using this we can
workaround false failures caused by GUI flickering.
For example, mobile wizard is updated all the time
which makes hard to test it reliably. We can use
this clickOnIdle() method, which is slower than the
simple click(), but is more reliable.

Change-Id: I2f970eb0cf400382c8384c91ab7c84b1e02e63af
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98373
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-08 17:00:27 +02:00
Szymon Kłos
304d26af19 Add find & replace dialog in menu
Change-Id: I4cf7f773e46d39fac521f607df4db6922a3c70bf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97702
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-07-06 14:13:47 +02:00
Tamás Zolnai
d613f8ad1d cypress: make jails folder if does not exist.
Newly jails folder is cleaned up after a run.

Change-Id: Ia4f3eb26f61c5f14304e9ae6a3d5b5f60a0ee592
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98204
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-06 13:08:05 +02:00
Tamás Zolnai
f934aa59a8 cypress: update writer table related tests.
Change-Id: I70039a14d6ad8ee33ae833c24111e6ca8d8caee4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98202
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-06 13:07:36 +02:00
Tamás Zolnai
97b82b5dec cypress: enable page setup tests.
Change-Id: I8eeb91c76e42cd868c491534e57cb08d2ea7675d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98190
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-06 10:16:17 +02:00
Tamás Zolnai
05e77fd0da cypress: add tests for sheet operations (calc, mobile)
Change-Id: I01b4806eac3ee713b8d3754e075df55d917e07ce
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98142
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-05 16:53:38 +02:00
Tamás Zolnai
390f829982 cypress: more tests for calc's hamburger menu (mobile).
Change-Id: I603ccb1c212a564feef649e19b608b9c4becd3bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97960
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-04 21:40:05 +02:00
Tamás Zolnai
dbe763ff76 cypress: disable unstable test.
Change-Id: I4132e5133e209504f19877cf24a9f11bf25bedf8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97934
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-04 09:51:34 +02:00
Tamás Zolnai
cb1b1f6b9a cypress: test for Data / Sorting in calc (mobile).
Change-Id: I3139e5153e209504f19877cf24a9f11bf25bedf8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97886
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-03 20:28:30 +02:00
Tamás Zolnai
ec273df5f7 cypress: test about dialog in calc (mobile)
Change-Id: Iaf908ea775348e2135262c7bc532b94c1364bbae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97864
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-03 16:42:43 +02:00
Tamás Zolnai
d33eead249 cypress: remove accidentally pushed only().
Change-Id: I1b5a2a1cb56d15dacea34a480198c314598de899
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97863
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-03 16:42:34 +02:00
Tamás Zolnai
9afe83e306 cypress: don't clear cypress cache by make check.
It's a global cache. Calling make clean on one branch
can break the build on a different because the
shared cache is removed.

Change-Id: Id03fb6b6fd69e899276abc93c3d907538576d8bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97841
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-03 14:30:22 +02:00