Commit graph

648 commits

Author SHA1 Message Date
Tamás Zolnai
6fe727048e cypress: add remaining tests for Writer top toolbar (desktop).
Change-Id: Ie55928532afbb3b59ee348c3a04f38e7cf3304d8
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
5806c963af cypress: fix this undo/redo test.
We should wait until the undo/redo toolbar
items become enabled, before pushing them.

Change-Id: Ieea499722917e8ae1689701b819f5eb181c6c4e9
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
afab5bfb4c cypress: simplify show/hide sidebar test.
Change-Id: I0da2c509dc31b640dff90f0d1eae53472acc2cb1
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
37f37b6972 cypress: fix indentations in top_toolbar_spec.js.
Change-Id: I640fe25a34e2e07279d15b8dc87ba92a5476cda1
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
69e84fb326 cypress: let's be more specific about what we test here.
Change-Id: I82c898f57c0bd850117abfc88242b69923ed77cd
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
e7a880d782 cypress: merge these two test cases.
To avoid code duplication.

Change-Id: I24e2eb47429733d5baa14e3b9d3639391f5467ce
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Tamás Zolnai
7cc571be5a cypress: merge left/right alignment tests.
To avoid code duplication.

Change-Id: I23af599925e91addef604474841b597ed26b9dfa
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-10 13:57:31 +01:00
Ezinne Nnamani
d0210de7e6 Created a Cypress test for Spacing attribute in desktop Writer
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: Iefbffc90fc794b61815b92fd54702a4215858dc7
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-10 12:20:32 +01:00
Tamás Zolnai
6a96d3f6d9 cypress: NC: sidebar can be hidden by default in NC.
Change-Id: I5292ba2bcbf840f0128bd28be3f381672b45fa7f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 21:56:09 +01:00
Tamás Zolnai
8829bc1167 cypress: php-proxy: disable retries.
For some reason the build hangs with retries. It must be
an issue with cypress itself, but I did not manage to
find a small reproducable test to report a bug about it yet.

Change-Id: I89874a2601649274ed9f7bf7a0e88c9cd1ffcf6f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 21:56:09 +01:00
Tamás Zolnai
4aa3e79ad9 cypress: php-proxy: fix page setup tests.
With php-proxy the timings are a bit different.
We need to make sure that the mobile wizard is
already in the right state to close it.

Change-Id: I4d5c26400c301a0c51622bd799c49ed7d04d1478
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 21:56:09 +01:00
Tamás Zolnai
9973736000 cypress: NC: fix up code.
Change-Id: I6d931a59f4281c85347b0e824aefbcd8cf2e129f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 13:30:37 +01:00
Tamás Zolnai
fad24063e0 cypress: show statusbar / sidebar for NC.
In NC statusbar and sidebar an be hidden by
default. Let's avoid test failures because of
that.

Change-Id: If6083df431bfc438f72be4f13e078ea335df114a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 12:54:20 +01:00
Tamás Zolnai
000c1390c2 cypress: php-proxy: disable all saving related tests.
It's a known issue, that with php-proxy we can't load
the same document twice.

Change-Id: I401a74734e1781f76847387ee9677a0fe6ca699d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-09 12:54:20 +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
2d02cf5cc6 cypress: move all Impress related helper methods into a bigger scope.
Change-Id: I6ab06a9c737258afc11e4fcecc91bc678940cd0f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 14:51:21 +01:00
Tamás Zolnai
941754f978 cypress: NC: disable newly added Print test.
Change-Id: I30f5ea0bcb767b41ef62267c4935bdaf374d11e5
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
Tamás Zolnai
8922df60be cypress: move some Impress related helper methods to a bigger scope.
We will need these methods in desktop tests too.

Change-Id: I302cb0b57fee8b15fbe0804dec14646cb11f0f2f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 13:13:02 +01:00
Tamás Zolnai
1a826e9c8a cypress: disable this undo / redo test.
It's unstable.

Change-Id: I3fdb2c5839b47728b5700cbd2b3cf4ea8e53dfb2
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 20:29:22 +01:00
Tamás Zolnai
3c0abda0e4 cypress: NC: disable new Saving test.
We need to do this differently in an NC environment.

Change-Id: I260fbe42851794e630be327bc25ec34201cad36c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 20:29:22 +01:00
Ezinne Nnamani
f3b6581015 Created cypress test for Save, Print, Redo/Undo and Show/Hide sidebar in Desktop Writer
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I001d0c6b6baca2f30f48d8b1737c1b7f52a11ac8
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-05 17:34:31 +01:00
Tamás Zolnai
ccce74796c cypress: NC: close firstrunwizard when subsequentLoad is true.
Change-Id: I305d877a468da70c78b68e6f70778ff490cd3024
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 14:49:42 +01:00
Tamás Zolnai
bf0b205c8d cypress: NC: fix form field tests.
Statubar can be hidden by default in NC.

Change-Id: I32ff2579131d174ce6ab2a5e08a7b13ff1020446
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 12:24:59 +01:00
Tamás Zolnai
f42714f4f3 cypress: NC: fix copy and paste text.
Change-Id: Ieacb9e5f5231fbf424a117a2c5ae324e7c0dfa54
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 12:24:59 +01:00
Tamás Zolnai
0460c683c3 cypress: NC: fix page setup tests.
Change-Id: Ic292be4a5f692ae0c6d2dd10884bbc72553be00c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 12:24:59 +01:00
Tamás Zolnai
e30caa8053 cypress: NC: fix slide insertion test.
In an iframe context 'not.exist' check does not
work correctly.

Change-Id: Ie522fd02ac5151fec401f49a8b80a64edbbbeb1b
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-05 12:24:59 +01:00
Ezinne Nnamani
bb30f7c346 Created the cypress test for Increase Indent and Decrease Indent attributes in Desktop Writer
Change-Id: Ia374c80d3574b44792381af201dafcfc5b275bff
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-04 12:07:34 +01:00
Tamás Zolnai
e9652b99b2 cypress: NC: disable printing also in Impress tests.
Change-Id: I2b2b12094ecaff828803418bf30372265e7855b3
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 22:00:16 +01:00
Tamás Zolnai
0a0d2b89cf cypress: NC: fix restore previous version test case.
Change-Id: I9b5eb6ffb8e938e30a3817f01e57e6c89ca30add
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 22:00:16 +01:00
Tamás Zolnai
4a9174cf5f cypress: NC: deduplicate file loading test code.
Change-Id: I296316366ace68ba4b559c2d82e54623d0738aa7
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 22:00:16 +01:00
Tamás Zolnai
f8b46ffa6b cypress: fix syntax error in selector.
Suprisingly the tests were not failing on this.
It might be an issue in cypress itself.

Change-Id: I27f6bc93a5a2880a00bfd1e0a0ced3e0b7b9b97c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 16:06:07 +01:00
Tamás Zolnai
ad6839488b cypress: NC: in NC the sidebar is not visible by default.
Change-Id: I37d8f436fc528568f449a58e43ccc7ed8142c866
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 16:06:07 +01:00
Tamás Zolnai
3cceb15b06 cypress: NC: fix hamburger menu related tests.
Change-Id: I219621c7376cd9e84fc635a960ba17dd77cfbf57
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 16:06:07 +01:00
Tamás Zolnai
6d37d7aa6d cypress: NC: disable save related tests.
In an NC environment reopening a document is not that easy.

Change-Id: Id18042dc08ab82c0538b03c17ecf6c9fb697cb23
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 16:06:07 +01:00
Ezinne Nnamani
9cd86f28be Created cypress test for Justify, Toggle numbered list and Toggle bulleted list attribute on Desktop writer
Change-Id: I392a312ac887b294bc63d4502a0f8f4645a05e84
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-03 11:24:58 +01:00
Tamás Zolnai
221c02af36 cypress: NC: disable normal image insertion test.
On NC we have different options for image insertion.
In the feature, it would be good to create NC specific
tests too for image insertion.

Change-Id: I540bbe0ddd66e3a2a4560282fd48f9f9002f970d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 10:20:19 +01:00
Tamás Zolnai
67d63553b1 cypress: NC: hide firstrunwizard more effectively.
Change-Id: I4a8bc873dc1657a0e554ec6132f5fc41531bb3d3
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-03 10:20:19 +01:00
Ezinne Nnamani
2975a266ef Created cypress test for right align attribute on Desktop writer
Change-Id: Ie0128ce0a6f20fe401cea231d0114abe64724ba7
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-03 09:19:34 +01:00
Ezinne Nnamani
335b00d04f Created cypress test for center align attribute on Desktop writer
Change-Id: I81e9765f7c2aa6811ec6ae4f15d37c9ba3d7532c
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-02 20:46:06 +01:00
Tamás Zolnai
65d67c771e cypress: php-proxy: fix insert hyperlink test.
The dialog is opened before the selected text content
arrives to the client.

Change-Id: I40fbc5e415c197515609304a047f0e5e303ae800
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-02 20:44:53 +01:00
Tamás Zolnai
255224abca cypress: php-proxy: disable new image insertion test.
It's a known issue, that image insertion test does
not work with php-proxy.

Change-Id: I0cd22ff4a96893c386fce28c5ef87716fd7b9b71
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-02 20:44:53 +01:00
Pranam Lashkari
580eecf87d leaflet: fixed DOM leaking on annotation remove in mobile
An extra annotation element was added but never removed
This was not a functional problem
But not a good practice and also made cypress hard to maintain

Change-Id: I53fc7d55154a601c52f89e35b9236f5ae66b46fd
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
2020-11-02 14:42:23 +01:00
Ezinne Nnamani
4fc7b1a255 Created a cypress test for Insert chart on Desktop writer
Change-Id: I1cd38fdcf1fa42257d75d02ecf4e2ccb1bd716fc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-02 12:58:33 +01:00
Ezinne Nnamani
a4b4027f42 Created a cypress test for Insert Shape on writer
Change-Id: I689845328981d9dbfe34cc71eefebb802315a85e
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-02 11:13:10 +01:00
Ezinne Nnamani
3622bbf612 Created a cypress test for Insert Hyperlink on writer
Change-Id: I6056962c7602859b5975d1e2b4da3d033c53dc4a
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-31 09:39:39 +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
d3ce9d0a31 cypress: NC: hide firstrunwizard.
Change-Id: I3b02cbe19578db2ecc8bcb597faa575a1552b55f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-29 17:56:18 +01:00
Ezinne Nnamani
8bedf6ce51 Created a cypress test for Insert Table
Change-Id: I8275fea411d42ec7f96c7d87c8102397f392befb
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-29 09:56:32 +01:00
Tamás Zolnai
5db82b9622 cypress: NC: visit the files URL directly.
Change-Id: I9d4666235308354f74105edfa0f5b1831ab0bf14
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-28 19:06:20 +01:00