Commit graph

709 commits

Author SHA1 Message Date
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
01813eceec cyperss: php-proxy: Undo / Repair test passes now.
Change-Id: I17293ecc2f1490855cc1a217776b8c853c8c974c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 13:47:24 +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
f399beaf65 cypress: multi-user: avoid running more tests in parallel.
We have more users running already for one test, better
to avoid side-ffects coming from running more multi-user
test in parallel (they are using the same loolwsd).

Change-Id: I1cbed36a3ffe2825c384b525da361c4cfe781b38
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
04139d31cd cypress: diable this new multi-user test case for NC and php-proxy.
Change-Id: I18688e130f9ac5b8976ca60ad44b798c48181129
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-14 12:24:36 +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
Tamás Zolnai
d9ce03331d cypress: php-proxy: reenable this test.
The issue was fixed triggered by this test case.

Change-Id: I00522835c25ca18aa374958c5b33b13f35e79563
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 23:17:06 +01:00
Tamás Zolnai
28c99d5e46 cypress: remove this old test.
It's duplicated now. It was one of the first
prototype tests.

Change-Id: I6a63644713189c8f56a77cc21df0c2a42d724547
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 11:57:23 +01:00
Tamás Zolnai
be8f8ea874 Update eslint of cypress test code: 6.8.0 -> 7.12.0.
Change-Id: I3508579dc608d56e63d842e413dc14d4c760965c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 11:57:23 +01:00
Tamás Zolnai
ffccbfaf4f Update cypress-select-tests: 1.5.7 -> 1.5.8.
Change-Id: I5b3a67b3bacf3efb8ffbef98d8967608c2f81742
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 11:57:23 +01:00
Tamás Zolnai
1ed1f0705f Update cypress: 5.3.0 -> 5.5.0.
Change-Id: I0c1431eaa3f49c3a4705a9cd438162cd7ccd0fe8
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 11:57:23 +01:00
Tamás Zolnai
2aa37cbaf4 cypress: do not run afterAll method in case of failure.
After a test failure, it's common, that the afterAll
method also fails which covers the right error
message and also makes the following tests to be ignored.

Change-Id: I5c1bbc5dd8b1b48dd2a8f1fc20a8ca3b8ecd8462
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 11:57:23 +01:00
Tamás Zolnai
9c65fe9805 cypress: NC: avoid hard coding locale indicator in number formatting tests.
1033 means en-US locale. It can be different in an
NC environment for example.

Change-Id: I929a7308b9f0d4a102f836d1ec66c5c98a6eb9c6
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 08:53:14 +01:00
Tamás Zolnai
6620c77c3a cypress: php-proxy: disable this unstable test.
Change-Id: I6fa2f777c95dac57d4ae8b13063c04f44d1ff20c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 08:53:14 +01:00
Tamás Zolnai
10df5de391 cypress: NC: disable retries.
In NC environment it does not work properly.

Change-Id: I9adbb01b450103a6ac2aa211eb933a5ab3f5fcd2
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 08:53:14 +01:00
Tamás Zolnai
175b32ddb1 cypress: NC: disable this unstable test.
Change-Id: Ifd7b970aac8e5f6a6bfc1a58d75eddf63ea42fd7
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-13 08:53:14 +01:00
Ezinne Nnamani
4bea7938c5 Created a Cypress test for Format as currency and Format as Percent in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I90ca9051ce71e9f3bc9b774cd0bdb87c076ceb8d
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-13 05:09:21 +01:00