Commit graph

111 commits

Author SHA1 Message Date
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
Rash419
4fa3926103 cypress: enabled and updated multiuser test
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib20c93ec9c45ce234ef974e0cb0bd5323873ac42
2021-12-01 19:36:29 +05:30
Rash419
2bcce2f630 cypress: updated cypress to use WOPI endpoints
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic5e165c4ebae19e48b9e2b9ffb67832ca41ccd76
2021-12-01 19:36:29 +05:30
Rash419
265c275a81 cypress: update help dialog screenshot automatically
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9f3e3c9cc7838f89d5a66a25c1f6dd0ef8f8a946
2021-12-01 11:57:00 +05:30
Rash419
c9f8f32e64 cypress: added scrolling tests for desktop calc,impress and writer
loleaflet: added test-div for horizontal and vertical scrollbar to get position

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I61f5823c26e1dc0a1ec96257bc58cb51bb29024f
2021-11-08 12:49:56 +05:30
Rash419
c082c80d8f cypress: fix: make calc tests more stable
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I36b6744890a5210db40a78395335fd15c758054a
2021-10-13 11:35:51 +05:30
Rash419
793bb33044 Fix: CI failing so added individual files
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id9043f3e56e56457448f9362727d8b4f7facfbd4
2021-10-11 17:31:48 +05:30
Rash419
6c66b1756d cypress: calc: added row and column operation
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I5f6fefad5dfcfc41f2d5d6f40dc1aec182c75d7e
2021-09-14 12:47:44 +05:30
Rash419
843d8aedb4 cypress: undo,redo,repair tests for single and multiuser
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I802d9e29a72ea71a88c1d4d736b743866a227c19
2021-08-21 19:53:36 +05:30
Szymon Kłos
9fc8f7d94f cypress: add simple sidebar tests
- test menubuttons
- test toolbutton popups
- test deck switch

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia928345982b855e9dbf850e969165566cc74f9d5
2021-07-28 08:46:04 +02:00
Rash419
74844c3dc8 cypress: introducing multiuser tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib6c86d74dd7f0414f3c63ed66e99504c870516a3
2021-07-27 14:58:09 +05:30
Gökay ŞATIR
39ee64ab50 PDF View: Added Cypress test for page up & down functionality.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Icc6f752e1cb406fb7c90e6d32520be531515d6eb
2021-07-09 21:05:40 +03:00
Rash419
fe6c622d23 cypress:sheetoperation tests for calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Idb2dfdce34cdff5901281637bf05882935344fdb
2021-07-07 14:36:20 +05:30
Mert Tumer
9212e4a338 cypress: Validate Complex Image tiles
Check the tiles are neither white nor invalid

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I08eb181ceea6d9e55ee31b564be56aff2fc5b56e
2021-07-06 12:54:55 +03:00
Rash419
70afec5bfb cypress:added table_operation tests for writer and impress
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ife9398bc6b2fe92aafe9df3b26a99c47b04f8a16
2021-06-22 13:15:32 +05:30
Rash419
02c28640bb cypress:added cell_apearance_spec for desktop classic and NB calc
loleaflet: fix NB bug where tooltip doesnot disappear on click in some buttons

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2ccb653d18e6b0ab5f0bcd3aadb36f52a718aaa3
2021-06-21 17:59:53 +05:30
Rash419
e6561ff816 cypress:added image_operation_spec for calc and slide_operation_spec for mobile
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I73032d2e855ddb5500867f1ec5fd7948d7798e5c
2021-06-07 14:39:28 +05:30
Rash419
68509f36ce cypress:added font spec for desktop writer,impress,calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iecd6671be39cd686f47129cde936b705a411f122
2021-06-05 12:35:23 +05:30
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