Commit graph

635 commits

Author SHA1 Message Date
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
Tamás Zolnai
f650b761b5 cypress: try to fix nextcloud test failures.
Change-Id: Idc9a948b0b689b484d609c8778c574c921918a5a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-28 17:24:58 +01:00
Tamás Zolnai
3f52832cfb cypress: update nextcloud test to work with NC 20 version.
We got some new exceptions and also we have a start
screen now.

Change-Id: I22288ede30540437e8b0a5d3ce4c607d42a465bc
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-28 15:12:02 +01:00
Tamás Zolnai
8af33a47a8 cypress: small cleanups in desktop/writer/top_toolbar_spec.js.
Fixing indentation. Removing extra selectAllText() methods.

Change-Id: I32c1602c173f9a46761d0035fd7b01c7963d9baa
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-27 11:45:44 +01:00
Ezinne Nnamani
c0f6ad4954 Created the cypress test for font color attribute
Change-Id: I0853c8c3d9cd88b0263c980a1e9ddcf81c6ca258
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-27 10:10:19 +01:00
Ezinne Nnamani
8677a2c262 Created the cypress test for Highlight color
Change-Id: I5faa18791aaa3e7670ea67502f86662569fd28b5
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-27 07:20:59 +01:00
Ezinne Nnamani
36107dacc1 Created a cypress test for style combobox
Change-Id: Id25ff65891ce7afa06f0877299d5220886fb5a1b
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-10-27 05:54:18 +01:00
Tamás Zolnai
7886d63349 cypress: remove php-proxy simulation.
We have a way of running the tests against
the actualy php-proxy script:

CYPRESS_INTEGRATION="php-proxy" make check

So let's remove the C++ implementation, so we don't
need to maintain a duplicated code.

Change-Id: Ie095a70a8175cc8cb4894905826d13762127b148
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-10-26 19:28:31 +01:00
Ezinne Nnamani
97d657699d Created the cypress test for font-style attribute
Change-Id: I80de963384fe6c2fe50607083fefe3ea1eb46af2
2020-10-23 18:02:51 +02: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
d401101833 cypress update: 5.1.0 -> 5.3.0.
Fixes this issue:
https://github.com/cypress-io/cypress/issues/8621

Change-Id: Ied225391e7e72dfd9df852481ad29b6368c194cf
2020-10-23 12:58:18 +02:00
Ezinne Nnamani
a3b7a7c356 Created a cypress test for Clear direct formatting
Change-Id: I54ebe7fb81ca6598ba45f3cbed62474d103d055a
2020-10-23 11:52:52 +02:00
Ezinne Nnamani
2d3c3f02c4 Created the cypress test for font-size attribute
Change-Id: Id80b03625717e5061cb58449eab532536cc9fb50
2020-10-21 18:16:10 +02:00
Pranam Lashkari
5ebf5774bf cypress: adjust annotation test to work with dynamic annotation menu
Change-Id: Ia07704b4ccc0f6e4c0d217caddeb93528ebb4768
2020-10-20 09:05:19 +05:30