Commit graph

93 commits

Author SHA1 Message Date
Rash419
75e2bffb3d cypress:paragraph properties spec for impress and writer desktop
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I512e3472b07b0deaf08802fda7d6cbfa09e29ecd
2021-05-25 16:53:22 +05:30
Rash419
6ffef3a7fc cypress:added searchbar spec for desktop impress,writer,calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If4a23c069c4fce9106b66fbb987f34cfddbb26f9
2021-05-24 16:41:24 +05:30
Rash419
c961e73f10 cypress: added delete-objects test
added id field in table option of menubar and moved _refreshRowColumnHeaders to canvastilelayer from calctilelayer

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia2e492cb6edcd65ba2444da34795fe367b25e887
2021-05-24 15:54:31 +05:30
Rash419
a01e5fb4d8 fix:cypress failing randomly on master
when two or more tests share the same document one or both the test are failing

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I638a76f8f98eff019a298bcafcbe89155442bcde
2021-05-06 19:58:10 +05:30
Rash419
eaa4f29ebf fix:focus_spec failing in CI
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9560ecde57faa194129dc1ad699745cb65582d3d
2021-04-30 16:51:56 +05:30
Marco Cecchetti
3317f6fe3e cypress tests for fullscreen presentation
Set up support for performing end-to-end tests on the fullscreen
presentation.

Added 2 tests:

1 - check text fields (slide number, slide name) are correct for the
current slide

2 - check the background for current slide is referenced correctly

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If8d3cda49254a910aa0c5d2d672834aa5b029e0b
2021-04-14 15:02:48 +02:00
Rash419
4551482451 cypress: added tests for comment switching in desktop impress
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0cd13c2555274e243ac60cceec0b3e00d2d929ef
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
2021-04-14 16:17:11 +05:30
Szymon Kłos
986e062fff cypress: test macro execution warning
- split helper method for loading document into 2 pieces
  because in case of interactive dialogs on doucment load
  we need to perform some action before we can check if document
  is already loaded

Change-Id: If6caf2168498a6d185c4a5199cf4b10b32ca23b7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-16 16:56:20 +01:00
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