Commit graph

736 commits

Author SHA1 Message Date
Tamás Zolnai
6720a3a3f6 cypress: update impress interferences test code.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I23f6c0298887d119793ce2b7184b3c14572f64b5
2020-12-10 13:36:34 +01:00
Tamás Zolnai
e8bad8ed60 cypress: add 'run-interfer-desktop' make command.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibfb2bd3e6158da72a160cdfdc8507f9887cbdcfa
2020-12-10 13:36:34 +01:00
Tamás Zolnai
f917ece93a cypress: add 'check-interfer-desktop' make command.
To run interference tests for desktop tests.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibe06399846a37345ab08fd830b6350fe12ba2e37
2020-12-10 13:36:34 +01:00
Tamás Zolnai
7a190deb21 cypress: restructure makefile: group interference related code.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I95bb115e41704d2912f3ed48b7e193ea648364f5
2020-12-10 13:36:34 +01:00
Tamás Zolnai
cb662aab1f cypress: let's be more specific here about which selection marker we have here.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I965819fa4f5cf7b299dfd411a44fef6e267db250
2020-12-08 20:21:36 +01:00
Tamás Zolnai
c2d41174f6 cypress: remove some unneeded assertions related to cell selection.
The visibility of the selection marker is already checked
by clickOnFirstCell() method.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5bf258b7c912ff1730b6d26900563ad8b454106f
2020-12-08 20:21:36 +01:00
Tamás Zolnai
963f97349f cypress: add helper methods for text selection.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id799c5389adb518e42aac7c5838e27405d4ecb1f
2020-12-08 20:21:36 +01:00
Tamás Zolnai
a5ec1800d9 Revert "cypress: remove this workaround."
This reverts commit 550f04f94d.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I536cef824919fe94d3985a82bdfe13f7de0b1935
2020-12-08 17:50:39 +01:00
Tamás Zolnai
5f80d8290a cypress: fix 'run-multi' make command.
5 seconds gap between the two users was moved from
js code into the makefile in:
9ff0f3e9fe

We need it for interactive run too.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic8aa541ce30f3146a61875ea66c904e65f0d6cf9
2020-12-08 14:24:18 +01:00
Tamás Zolnai
7422663234 cypress: put loolwsd log under cypress_test/workdir folder.
So it's easier to find the loolwsd.log of the last
called command.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4d597a3d6683360ef03f15061a68a30db8ae498e
2020-12-08 14:24:18 +01:00
Tamás Zolnai
bd6cfefc29 cypress: add 'run-interfer-mobile' make command.
For running interference test in interactive mode.
The interference user is run in the background and
the user running the test code is displayed in the
interactive test runner.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I3595a618f78603ed3e5321969a7395b60555470b
2020-12-08 14:24:18 +01:00
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
9b181385b1 update cypress: 5.5.0 -> 5.6.0.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I6a290e8520311a89d2c5e214152be58bd7e2904e
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
979afcc0a1 cypress: NC: disable failing 'Automatic spell checking.' test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I6762c08b9a921eb942ee537195cbe530f3260dc1
2020-12-02 15:03:38 +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
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