Commit graph

566 commits

Author SHA1 Message Date
Tamás Zolnai
d7bb312776 cypress: use moveCursor() helper method in table tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic24458ca4aa32c3a883e6cfc018ca0429071cb43
2020-12-08 13:46:40 +01:00
Tamás Zolnai
550f04f94d cypress: remove this workaround.
The related issue was fixed in:
dc18239d07

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id0770d11fcaf8eb385b60ddf4286e804127999ca
2020-12-08 13:46:40 +01:00
Tamás Zolnai
35fe0b9541 cypress: remove these useless lines of code.
It does not actually do anything. Font size is not
stored as a 'font-color' attribute.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8e39a7c1064bce386c85ff21811fc6f95253adc0
2020-12-08 13:46:40 +01:00
Tamás Zolnai
4950ca4197 Revert "cypress: use moveCursor() helper method in table tests."
This reverts commit e1ed5d3c299f2664d108375a5ea3cb90814556a4.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9684921837ed6f55a74fb45750bff6c890996a59
2020-12-04 23:10:56 +01:00
Tamás Zolnai
337e570d1c cypress: use moveCursor() helper method in table tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iace8fab305bba260c19d8fc7086caa24d20f6782
2020-12-04 16:33:26 +01:00
Tamás Zolnai
77dc334325 cypress: generalize mobile interference tests for Impress.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idcccd74d0c58f768189b488f85158e225130c41b
2020-12-04 16:33:26 +01:00
Tamás Zolnai
0c08b6dad0 cypress: php-proxy: reenable table related tests.
There was an issue about tile invalidation related to
Writer tables. This was fixed in the meantime, so we can
enable table tests. I added an additional fix for
these tests to make it work with php-proxy too.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id3f8288b65e597a49f0a45c8d106d5ed9f6ead46
2020-12-03 14:56:19 +01:00
Tamás Zolnai
f5feb26173 cypress: disable this multi-user test.
It randomly fails recently. The issue is something related
to the text selection at the end of the test. We'll need
need to investigate that later.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ifba3d52d569fa41920e073b809ed12b60f761103
2020-12-03 14:56:19 +01:00
Tamás Zolnai
93403db249 cypress: generalize mobile interference tests for Calc.
Also use a bit longer waiting time for mobile wizard to
become idle. With the interfering user the timing is
a bit different.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4f24c700cd718bd129b713f2fd12819f92772b64
2020-12-03 14:56:19 +01:00
Thais Vieira
a335e6763e impress/cypress: add tests for font size
and font name.

Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: I959a7bc455371504897e03dcc0be8b26178b0202
2020-12-03 11:33:14 +01:00
Tamás Zolnai
a95de9a799 cypress: remove this prototype of interference testing.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibb7c84a2c701770cb4064c04223fc1fe041d624e
2020-12-01 13:25:20 +01:00
Tamás Zolnai
52bb718620 cypress: introduce interference testing for mobile tests.
Added `make check-interfer-mobile` command for running
interference tests. Now it works with writer tests.
I'll generalize it later.


Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2181a8653d61cc6ed873e2887a3e42767f46f177
2020-12-01 13:25:20 +01:00
Tamás Zolnai
e631406805 cypress: make sure the cursor is visible after step into editing mode.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia30f6fe79c3318c2663d8da1d3d197fb936b0088
2020-11-30 15:23:18 +01:00
Pranam Lashkari
1c1274a5fd cypress: disabled annotation/comment tests
mobile tests annotation tests do not work with new comment wizard
tests needs to be rewritten so temporarily disabled tests

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I66e8f88cdbf921060af083e84d73b372e03f8dda
2020-11-30 06:31:15 +01:00
Tamás Zolnai
94c7c23f31 cypress: don't use togglemergecells as an indicator here.
It's state is inconsitent and so it fails randomly.

Change-Id: Icd84d618fc87e64228918ad2e6e1ac602eac0e05
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-26 14:48:24 +01:00
Tamás Zolnai
33c3e062f1 cypress: fix-up some writer tests.
It's not consistent, that we have a cursor
after stepping into editing mode.

Change-Id: I316c2399776535aaa12a40edb4686a9b02c16c4a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-25 18:04:49 +01:00
Thais Vieira
29588ee18b impress/cypress: add tests for highlight color.
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: I074c397ad6fe68a0841dc71c8465b760ac644eb7
2020-11-24 14:20:13 +01:00
Thais Vieira
51649f3699 impress/cypress-test: added test for font color.
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: Iea532287eec0f55ba09d45298f2f904753088ba6
2020-11-23 15:44:16 +01:00
Tamás Zolnai
50df517e65 cypress: NC: these log configs are not necessary anymore.
Change-Id: Iafa7f6f415d336b8b281bd7df528ec4baf2ec2a4
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 13:47:24 +01:00
Tamás Zolnai
9c98f326fe cypress: multi-user: improve interfering prototype a bit more.
Instead of hard coded test file, we use the admin
console to find out which test document we should
open with the interfering user.

Change-Id: Iedaea07eb558ca6335d8768ab23799bf02d7f4a7
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
e085455ddf cypress: multi-user: improve interfering prototype a bit.
Use comment as syncronization point.

Change-Id: I5a959b3c89f445a150ddb970241d1188366cb00b
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
0f5042f76f cypress: multi-user: move retries config to a shared place.
Change-Id: I7939395b88c7a74a1e0016ec78c95ef46a5a31ec
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
9ff0f3e9fe cypress: multi-user: move this document opening gap to the make file.
Change-Id: Ib37d8d29e8965712975e27a4577a4f1b6a0e35a0
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
e066d047ea cypress: NC: improve iframe handling a bit.
Create an alias for the iframes, so we don't need
to find them every time, but we can use the
reference to them. It make the log more clear
and also makes things faster.

Change-Id: I6ca21f951568e46cec3d6a574ce1798b522067ea
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 10:07:20 +01:00
Tamás Zolnai
a67bf6198f cypress: NC: remove this check.
It does not work correctly in NC environment.

Change-Id: I1358f0f80aa05ddb118fc1cfd4237a5fac875fcc
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 10:07:20 +01:00
Tamás Zolnai
797139ed0f cypress: extract selectListBoxItem2() method.
Change-Id: I3be28686d19c5bc174b1a2f83fe9a849239756b2
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
eea13adc99 cypress: extract checkDialogAndClose() method.
Change-Id: Ib5f2d7c7304390e660ec36878fe060e4f39a9312
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
8f9f044865 cypress: extract selectListBoxItem() method.
Change-Id: I4dcc1d77f20955ee9bd425d447a3fb77f1a423f5
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
c8166c3a04 cypress: simplify these border tests.
Change-Id: I43ba769f9952c8286a0c190342d382359d23c703
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Ezinne Nnamani
de8628121d Created a Cypress test for More option in border style in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: If98fef3d53b190c79335306f4e81d59eda8e6f8c
2020-11-18 13:29:34 +01:00
Thais Vieira
d3225855b2 cypress_test/impress: Add test for strikethrough
font shape

Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: I5c83c95aa968334a82a7ae7a3bb8fc1c7bba9b7c
2020-11-18 13:29:07 +01:00
Tamás Zolnai
9fdfefe3a8 cypress: extract selectFromListbox() method.
Change-Id: I58da02f2a082e3683da62022c3bf9cb656621cb5
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
d38360ff74 cypress: extract selectColorFromPalette() method.
Change-Id: I6ce70b2ee51dde2c6449236d911519776f75f892
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
3b9e202213 cypress: selectAllMobile() -> selectEntireSheet().
It was a mobile only helper method originally
and I forgot to update the name when moved in
into a bigger scope.

Change-Id: I818cbebadba4152afb8e0261015734a232b0e211
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
c91ca12d71 cypress: this wait() is not needed anymore.
Calc helper methods were improved in the
meantime.

Change-Id: I9c464cd9d23ce4a70fa63d376619458f38cc1389
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +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
7dfe079903 cypress: update this formulabar test.
To make it more stable.

Change-Id: Ib9c8878bdf266733ec03eb3ba018035b115c7f7d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-17 17:37:14 +01:00
Thais Vieira
bbf7b33ca6 cypress_test/impress: Add test for underline
text shape.

Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: Ia71b891d78bf621aec24d90e105fed1b32152528
2020-11-17 14:57:20 +01:00
Thais Vieira
062f43dfa7 impress/top_toolbar: Add Cypress test for italic attribute on desktop.
Change-Id: I7cf9e31beba87cd12d562b0e899b83c895ba68d7
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
2020-11-17 12:29:40 +01:00
Ezinne Nnamani
e350557c94 Created a cypress test for Apply top and bottom border and Apply border for all sides in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: Ic24f19c298cd2577f18c961b6a0a596034756445
2020-11-17 12:14:11 +01:00
Tamás Zolnai
cc85a51eeb cypress: workaround an issue of afterEach() hook.
For some reason, assertions do not work properly
in afterEach hook after a test failure. So in case
of test failure we don't check the admin page,
whether the test file was actually closed, but we
just wait a constant time.

Change-Id: If2eb927b0383816639689ec67eef7e3cd1142366
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 17:50:15 +01:00
Tamás Zolnai
3f4468a497 cypress: merge some selection helper methods.
To reuse as much code as we can. We can use the same
method on mobile and on desktop.

Change-Id: I15b1038313145db6cb6ea07489c0d30a0fc2ce64
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 17:50:15 +01:00
Ezinne Nnamani
8bcde166cd Created a Cypress test for Left and Right border, Top border, Bottom border
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I3c1d920c9d05b44dda5172ec67226072675ba892
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-16 17:29:31 +01:00
Tamás Zolnai
e8e9ed8c50 cypress: update this comment modification test.
To make it more stable.

Change-Id: Ib8731df9d29fafe568e6e7124ed8d17c315831b6
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 12:40:18 +01:00
Tamás Zolnai
6fa042da32 cypress: rework formulabar related tests.
To make them more stable. I used tc tool to
simulate network delay to find issues with
the test code.

Change-Id: I9a67a2650fc08e573323b1df96b940318b4a45cb
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 12:40:18 +01:00
Ezinne Nnamani
fc851c6cf8 Created a cypress test for Remove border cell, Right border cell and Left border cell in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I967dee45e2956f40a8645e9578a3b7c40a8a4d58
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-16 11:38:11 +01:00
Tamás Zolnai
b3ce314264 cypress: skip afterAll() in case of failure for NC only.
Change-Id: I37c13cd9c40fe034236e675fd1ba1ed8f0dea216
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 02:30:16 +01:00
Tamás Zolnai
8f2df4a0a5 cypress: rework some calc tests.
Simplified getTextPosForFirstCell() method and
renamed to better match with the function.
Also modified getCursorPos() method. Sometimes
we have an additional hidden text cursor for
formulabar.

Change-Id: Ia8adc645ef3f20426dd509803fcfc4f35662a779
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 02:30:16 +01:00
Tamás Zolnai
2c338ef7e2 cypress: this test is unstable recently.
Needs some rework.

Change-Id: Ied3008463e9a7210a400702a0331ab7f09139ed3
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-14 12:24:36 +01:00
Tamás Zolnai
1a6fc4ca05 cypress: disable these unstable tests for now.
Change-Id: I99f166933ddbaf899d2d4fffd218f2824e3adf52
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 23:17:06 +01:00