Commit graph

85 commits

Author SHA1 Message Date
Tamás Zolnai
fdaacc4faa cypress: add tests for statusbar (impress, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5615c78d146510ce1f755d77a5d618bf3476522b
2021-02-26 14:19:31 +01:00
Tamás Zolnai
1a910e137f cypress: add tests for statusbar (calc, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1346790c4285121d54c670f399b3fc90f3572746
2021-02-26 14:19:31 +01:00
Tamás Zolnai
5926cf1445 cypress: add tests for statusbar (writer, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia8e01d8d7841d4941d1a98c5e9b9b29bcbf5219d
2021-02-26 11:19:32 +01:00
Dennis Francis
2d169bf32a add cypress checks for canvas-overlay items
Currently only the cell-cursor and document selections are part of the
canvas overlay. The others are still part of svg layer.

For now only the bounds of the canvas-overlay items are asserted. The
canvas overlay items update their bounds data as JSON text on cypress
only divs inside the overlay section div every time there is any change.

Unlike cell cursors, the selections need not be always a single
rectangle. To add tests for the more general cases, the json format of
test data is helpful.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I70e6328116c44317f31deb9c8bea62e781d8c421
2021-02-17 19:13:49 +05:30
Tamás Zolnai
27dba59e10 cypress: add a test case which triggers assert related to sidebar cache.
This assertion is triggered by interference testing:
make check-interfer-desktop spec=calc/tunneled_dialog_spec.js

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib16c97d7c45192a493720d028f38eb5efba4346f
2021-02-15 12:46:41 +01:00
Tor Lillqvist
989d57b580 In Cypress tests throw error if dialog image cache is inconsistent wrt server
We have a dummy spreadsheet document with a column of cells each in a
different font size. The font size of the current cell is displayed in
the sidebar.

In the test we step through the cells first downwards and then back.
Thus the sidebar image that contains the font size will be updated as
we step through the cells. At first nothing will be found in cache,
but when returning, the images should be found in the cache. If the
cache in the JS client is not consistent with that in the server we
will throw an exception.

Change-Id: I439263c7923d985679fafa0125cd2d7f635e0995
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-29 12:08:58 +02:00
Tamás Zolnai
d18d3a5381 cypress: update 'Enable text wrapping.' test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iac566958e3820376a991d06c1ad5c03f81efd36a
2021-01-27 14:08:09 +01:00
Tamás Zolnai
b5d5129f0d cypress: add text cursor tests for Writer (mobile).
I've seen some inconsistencies related to cursor
movements in the existing cypress tests. I added
these tests which checks cursor behavior directly,
which might help to find out the issue with cursor
handling.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If158ccef359bb28ade8d7336594fdafdd46868f4
2020-12-14 17:38:03 +01:00
Ezinne Nnamani
342f95f490 Created a cypress test for Apply horizontal borders, Apply all inner and outer borders in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I0298ed82345ea4e8541645b91d23167e64077cd4
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-18 11:38:30 +01:00
Tamás Zolnai
30650d09bb cypress: test for applying left/right alignment via top toolbar (Impress).
Change-Id: I93caf91826a2e4b2e37cd466e31b8b424d9114aa
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 14:51:21 +01:00
Tamás Zolnai
1665a397ab cypress: test for applying bold font attribute via top toolbar (Impress).
Change-Id: I6e336da70cd47fd821ad54a18f33f7b93f3ee46c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 13:13:02 +01:00
Ezinne Nnamani
23a5cddfa9 Created a cypress test for Insert Image
Change-Id: I8f7a56f34b8e6bcd7cad269112864e9ed9250ce3
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-30 13:34:10 +01:00
Tamás Zolnai
5b0676bc3a cypress: protoype an interference test.
The idea it to run an existing cypress test while
the same document is opened by a second user. The second
user does some activity (e.g. moving cursor, clicking, etc)
and we check whether it makes any interference with the first
user's view. The first user is doing the actual test's steps,
so we can see if interference breaks the assertions.

Now it's just a prototype for testing it in the CI setup.

Change-Id: I3e02c037754862d628c73bbb4b2d82ea84b8a719
2020-10-23 16:09:00 +02:00
Tamás Zolnai
995f454c32 cypress: add tests for search bar in Calc (mobile).
Change-Id: I046b90d021d01ce0bc1c1fc65d3ee435af3ad97f
2020-10-19 18:29:53 +02:00
Tamás Zolnai
f8fd2a365c cypress: add tests for search bar in Impress (mobile).
Change-Id: I8fa9bcd60820fd142ff7f520cbed0bdecc902df9
2020-10-19 18:29:53 +02:00
Tamás Zolnai
7cbdf0fc9a cypress: add tests for search bar in Writer (mobile).
Change-Id: I4d62fdf1f5c79da2bcf1d8c3ceed23f13b696dc7
2020-10-19 18:29:53 +02:00
Tamás Zolnai
5365d50cd2 cypress: test applying bold via toolbar (calc, desktop).
Change-Id: Ib0503e3ee672780996bd568a1225dcb1513dfed7
2020-10-16 15:24:18 +02:00
Tamás Zolnai
c8f5ba4b82 cypress: more tests for formula bar (mobile).
Change-Id: Ice9ab1f0114a02561243b3729cb248948f802d21
2020-10-15 17:56:23 +02:00
Tamás Zolnai
e4f385153b cypress: add tests for formula bar (calc, mobile).
Change-Id: I570e414f36128c14b3de95a2a8ad713760082b04
2020-10-15 00:08:52 +02:00
Tamás Zolnai
fc04d2ada0 cypress: add tests for comment operations (impress, mobile).
Change-Id: I93a7cfdab3ee8b75050a74e93d8d074f3bb8ac6c
2020-10-13 04:01:35 +02:00
Tamás Zolnai
81179ac91d cypress: add tests for comment operations (mobile).
Change-Id: I9eb2dea1a600caba0bc11763838f574a1c69f0a5
2020-10-13 03:24:22 +02:00
Tamás Zolnai
85291d9cfe cypress: add a top toolbar test for desktop.
Change-Id: Iff8ee5d737d66748e22000e8ae728cbb162cbef0
2020-10-07 14:12:56 +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
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
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
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
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
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
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
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
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
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
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
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
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
5199154db5 cypress: tests for search toolbar in calc (mobile).
Change-Id: Ie50efd626fde3f586f657d001e050ed19512dbcb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97225
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-26 16:25:58 +02:00
Tamás Zolnai
4845fa3963 cypress: add some tests for hamburger menu (calc, mobile)
Change-Id: I8ed0e407003bb56731d7ea3f491dc9e0abe9069d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97035
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-25 16:34:23 +02:00
Tamás Zolnai
b9b4b6e5ef cypress: add tests for Formmating marks / spellchecking menus (writer, mobile)
We use the tile images to check whether something appears
on the tiles. In case of formatting marks it's the blue
space indicators. In case of spell checking it's the red
underlining.

Change-Id: If57c3e8759e0c8cabfc6bb858af9519ddd662156
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96523
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-17 16:51:04 +02:00
Tamás Zolnai
08cb112687 cypress: tests for some options in hamburger menu (writer, mobile)
Change-Id: I73e7e6732f51298fa12e194da1f337e99e874d80
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96259
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-13 17:49:20 +02:00
Tamás Zolnai
71f2d7b95d cypress: test insertion of local images.
Adding a file for insertion from cypress code
is not trivial. I added cypress-file-upload package
which can be used for this.

Change-Id: Ife7da586d1d87c2c4580730af29857c1d0d91750
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96232
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-12 18:55:56 +02:00
Tamás Zolnai
0fc0b6c134 cypress: paragraph properties test in impress (mobile).
Change-Id: I5b023cfff539f507c945573171357e67b3cb2884
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95435
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-03 15:29:16 +02:00
Tamás Zolnai
b8b8b69b86 cypress: test also applying font on selected text.
Change-Id: I1a0446b28e6b3ec5de75af5ee6e0f68f5c0675e1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95407
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-03 13:11:21 +02:00
Tamás Zolnai
9dba400fb1 cypress: tests for applying text properties on text shape (impress, mobile)
Change-Id: I8715b853456b04565db2b524ffec3b6429c657fe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95032
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-05-28 18:56:53 +02:00
Tamás Zolnai
e3a69f66f8 cypress: more tests for slide mobile wizard.
Change-Id: I03b91a35cda4670a89ba8f02d148700c1bbcde56
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94943
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-05-27 13:48:08 +02:00