Commit graph

1034 commits

Author SHA1 Message Date
Tamás Zolnai
892e29377a cypress: mobile: enable spellcheck related tests.
Change-Id: I198c4abb43426cb6a6d4e8e9b43f1c7ed83f1d81
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89595
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 22:01:03 +01:00
Pedro Pinto Silva
f401f1f714 Hamburger menu: adding ids (so it uses the respective icon) and adjusting cypress file
Change-Id: I33ad1671cc859ea1af1350f3e3d3a83b33c355c5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89532
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 12:41:57 +01:00
Pedro Pinto Silva
f3b8455aaa Mobile: Insert: Add missing icons, add missing ids, create missing icons, also add sub level icns for footerandheader and formattingmark (fixing cypress)
Change-Id: Id3ca33095b5eae7d13129f4b9629e2c0faf302fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89371
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 12:06:31 +01:00
Tamás Zolnai
907a23bf0c cypress: mobile: improve shape geometry tests.
Change-Id: I46b2384da6c406c66e3f5d19838df1e87804b2a9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89390
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 00:37:42 +01:00
Tamás Zolnai
b77cd954e0 cypress: use different test files for different test suits.
Change-Id: I29ad09ce99128fe6700070e23cf66dfc0c553b70
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89389
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 00:33:32 +01:00
Tamás Zolnai
ca2fe5fa91 cypress: mobile: disable an unstable focus related tests.
It's unstable now, how focus behaves with shape.

Change-Id: If429420852599315bff5d71f33f263f1d79a356c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89380
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 22:14:25 +01:00
Tamás Zolnai
4f864162e4 cypress: mobile: update table related tests.
Change-Id: Idd65edc8d3c007afec9e93e0a103379c579a178c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89379
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 22:10:38 +01:00
Tamás Zolnai
5ff34b20c5 cypress: let's make the pid file under workdir.
Change-Id: Ib927b7d4c29c623de8cd4bf083843a7a6a7c9c2f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89374
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 19:43:23 +01:00
Tamás Zolnai
a7da409624 cypress: make sure that npm packages are not installed more times.
When we build with more jobs.

Change-Id: I1051825ec8db4ccc7e10bd4a599480a97334538d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89373
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 19:40:24 +01:00
Tamás Zolnai
131f4c340c cypress: mobile: this test has an unexpected side-effect on other tests.
No idea why is that. Maybe cypress has an issue in it somewhere
or loolwsd is doing something. Adding a small wait avoid the
failure.

Change-Id: Ic1b29c34f9990fc4937105925872655a98793f79
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89372
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 19:35:55 +01:00
Tamás Zolnai
55b4fb9ec7 cypress: mobile: simplify this test.
Change-Id: Iaf076f35eeabd7609da024a4f3236a52e69bb543
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89362
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 17:16:26 +01:00
Tamás Zolnai
48bca31c9e cypress: mobile: make selectAllMobile() more stable.
Change-Id: Id8b919e3e0a18b28746541ee2a65e52f85458fa9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89353
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 16:05:13 +01:00
Tamás Zolnai
2a6dd836c3 cypress: mobile: update shape related tests.
After:
11b7270acd

Default zoom changed -> shape is insert to different
position -> geometry changed.

Change-Id: Ibeed3a57b3b64962951f11054f6aa3410a0e673d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89345
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 15:00:56 +01:00
Tamás Zolnai
a1eaa97954 Revert "cypress: mobile: split this test case."
This reverts commit c692487acc.

Pushed accidentally.
2020-02-24 11:54:47 +01:00
Tamás Zolnai
c692487acc cypress: mobile: split this test case.
So it might be more stable.

Change-Id: Ie8b8a13ebfe9b681a8e9a456f24f6322ce9cc8a6
2020-02-24 11:36:43 +01:00
Tamás Zolnai
9484ec73d1 cypress: disable an unstable check here.
Focus is not consistent around double taping.
Enable this check again when something is improved here.

Change-Id: I448d57a9fd053d1680352b6d6175f38f3dda33d9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89331
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 11:16:27 +01:00
Tamás Zolnai
75451d9fb6 cypress: use parentheses consistently in the make file.
Change-Id: I3d679fe99749222a6ab56c952d5d3fa09a6dd3d7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89238
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-21 20:25:43 +01:00
Tamás Zolnai
3f0afa9cfa cypress: better handling of npm package dependencies
For incremental builds, it's not enough to check the node_modules
folder, we also need to check whether all used binaries are in
place.

Change-Id: I9c5f380f3845195bfa2dbfb03ab269ce4659c4ae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89233
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-21 19:47:22 +01:00
Tamás Zolnai
fdcdcedbfa cypress: don't wait on loolwsd server forever.
Use one minutes timeout.

Change-Id: Ia4e351088d7bd152b4c7f47c66dce2a88f14970c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89232
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-21 19:43:27 +01:00
Tamás Zolnai
f6a5b90612 cypress: remove obsolete comment.
Change-Id: I9d8293ed27cb756325ffde48f3bcf37f390a1651
2020-02-20 17:10:24 +01:00
Tamás Zolnai
389720d948 cypress: mobile: make mobile wizard navigation more stable.
When we open a new panel in the mobile wizard the new
content appears after a short animation.
I suspect that this animation makes tests to fail sometimes
with 'detached from DOM' error. Waiting the end of the animation
seems help on this issue.

Change-Id: Ie9cc322ff9bd9a6287b4d57126e6afab91a98713
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89107
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 17:08:05 +01:00
Tamás Zolnai
7810825e6b cypress: mobile: make paragraph panel related tests more stable.
Change-Id: I6d6d9e8f2f6d14406327ae074f1e82e411f508cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89091
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 13:41:29 +01:00
Tamás Zolnai
c211ce95e2 cypress: mobile: enable some shape related test which are stable now.
First issue was rendering the mobile wizard twice by
opening. I added a workaround for this issue:
20b5825ce5

The second issue was with the animation when moving
one level down in the mobile wizard. Checking the next
level content makes these tests more stable.

Change-Id: I3f3c90e5975747f833e9560140cabb6c310dfe57
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89087
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 13:14:38 +01:00
Tamás Zolnai
be9333bf5b cypress: try harder to kill loolwsd server.
pkill uses SIGTERM signal by default, which is good because
using that makes loolwsd to clean up things before shut down.
For example it removes the pid file.
However, when loolwsd stuck for any reason, then SIGTERM might
not be effective. In this case use SIGKILL.

Change-Id: I3ed4bd24d6e73169b4d04dd7c9b4ac03bee8fdd1
2020-02-20 13:13:52 +01:00
Tamás Zolnai
bde5059f19 cypress: mobile: update test title.
Change-Id: I01751b3f3f25391fd6d846e133dc4fc3e5ff84df
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89076
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 12:00:18 +01:00
Tamás Zolnai
9eaecc1b06 cypress: mobile: Fix-up hidden style items test.
Without waiting for the mobile wizard to be opened
the not exist check will allways pass no matter
whether the items are actually hidden or not.
First we need an indicator that the mobile wizard
is opened and then we can check whether the removed
styles items are not there.

Change-Id: I00c1aaf6e11351cf8714be3ed6d5b9d2ff000324
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89074
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 10:19:38 +01:00
Tamás Zolnai
eb4f5abf52 cypress: kill only our own loolwsd process.
Change-Id: I9c6f71571183c7583bd3c4c122c3c3e2c04696ea
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89070
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 05:45:25 +01:00
Tamás Zolnai
39150fca06 cypress: better way to generate allowed port numbers.
Change-Id: I1900df07f1fe76d39a35ab8cab0d62c0c53a35f9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89069
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 05:44:57 +01:00
Michael Meeks
c07f45e4e5 wizard: hide styleupdate as well as stylenew.
Also hide calc style panel for now: incomplete.

Change-Id: I46fee97f5d029860a12e5f7215d830091c5f9bf0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89068
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-20 05:21:51 +01:00
Tamás Zolnai
16578f0353 cypress: mobile: Disable spellchecking tests for now.
There is no an obvious reason for this issue and also
I can't reproduce this issue locally.

Change-Id: I6860fa878ebafd9deab92b2662c352a99ab85b52
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89071
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 05:02:22 +01:00
Tamás Zolnai
eb53dd5a8c cypress: Always search for an available port number.
Change-Id: Ibfb80d43cd7f7d4c8cab8e3621bebfc2201d4b2d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89066
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-20 04:49:38 +01:00
Tamás Zolnai
0a7e3bf30f cypress: mobile: Test whether the line width spin button is readonly.
Change-Id: I628594902b87dbc904628b8815c520fdb01478c6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88976
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-19 11:05:05 +01:00
Tamás Zolnai
2e9f59280c cypress: mobile: Test that the arrow style item are hidden.
Change-Id: I958357acb912176070e45ac331b38d42ba24cd15
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88975
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-19 11:03:22 +01:00
Tamás Zolnai
08d801b7d6 cypress: mobile: Disable this test for now.
Recently fails randomly with core/master.

Change-Id: Ib8003c2b82b773a2851b251cba838533d040b3e5
2020-02-19 10:33:48 +01:00
Tamás Zolnai
eeadcb5a40 cypress: mobile: Disable shape related tests for core/master
Will investigate the issue which causes to fail these tests.

Change-Id: Ic71d0fccb200a3c51d927be62d9d39301c0c3064
2020-02-19 10:33:48 +01:00
Tamás Zolnai
248fa4f21f cypress: mobile: Introduce a method to workaround wrong mobile wizard content.
Change-Id: I59ceb56f049378c3e236822b0059d0413e107b95
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88973
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 18:33:57 +01:00
Tamás Zolnai
28029dce14 cypress: mobile: Add more tests for changing shape line properties.
Change-Id: I7eb2132b591f081087dca1999ce81e002ccd5101
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88972
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 18:33:46 +01:00
Tamás Zolnai
7de5068426 cypress: mobile: Update table reated tests.
There is no focus any more after selecting the
table, so we need to use a different method for
moving the cursor in the first cell.

Change-Id: I9d03337d7cb710224a892472f0989896d2e03024
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88971
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 18:27:32 +01:00
Tamás Zolnai
23d1adcbcf cypress: mobile: Add some tests for changing shape properties.
Change-Id: Ibd437591c9b32af242416aadcbe5683ddfeb04c3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88874
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 16:15:19 +01:00
Tamás Zolnai
dfd44336b0 cypress: desktop: Fix-up copy-paste test.
Change-Id: I936315ae60e0f1bcd245fa8c361a511a690809a8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88877
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-17 18:06:57 +01:00
Henry Castro
cefcfcfe19 loleaflet: mobile: use hyperlink tag for context menus
Change-Id: Iac83687794c90ff3439e7a5c833d24007ec52ec3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88545
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-17 15:58:11 +01:00
Tamás Zolnai
466eedabb0 cypress: mobile: Add some basic tests for spellchecking context menu.
Change-Id: I9ff2ce361670e407e8823f08c253e60bde3e8657
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88719
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-14 16:23:49 +01:00
Tamás Zolnai
f7d232d758 cypress: Create workdir in the builddir.
Change-Id: Ief5a74412b7e12350d83b3af4345bf813288065c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88628
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 20:14:18 +01:00
Tamás Zolnai
3b500642d4 cypress: Fix build failure related to field insertion.
Use en-US locale. In the tests of date / time fields
the date format contains the locale, which was set to en-US
originally.

Change-Id: Ida56dd8a3e64b0c81d70d010f3aabf40da7d73a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88620
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 18:53:34 +01:00
Henry Castro
a420aef10d cypress: makefile: fix running specific test
buildir != srcdir

Change-Id: If3f33b546d9c6a95ba214d2d26213ca95fe52e2d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88605
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:31:04 +01:00
Henry Castro
ff7cd32ba2 cypress: ensure English locale
My browser is Spanish by default

Change-Id: I2f3a2aaf7a6b0856c778dc9b943e23f8c168a394
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88568
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:30:29 +01:00
Henry Castro
c2de19b368 cypress: makefile: fix build dir expansion
builddir != srcdir

Change-Id: I8243fb28782bbe123b65ec86a36770323092b9f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88561
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:29:51 +01:00
Tamás Zolnai
5d41b930e6 cypress: mobile: Organize tests based on component.
Change-Id: I49f6e76b219e4c55add05b5a8489e51c518625ab
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88553
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:42 +01:00
Tamás Zolnai
f8116809f7 cypress: mobile: Fix up calc focus test.
Change-Id: I674f7b6945b367f9c7a9541681a56f4c556c1cb7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88552
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:25 +01:00
Tamás Zolnai
f93e3a4eda cypress: mobile: font size combobox works now with core/master.
Fixed in:
18dd0254a38ca91d0d325aaecc4227724c035d87

Change-Id: I1e74d8f031cd5bfe1c74ab06693b2c39e97cc866
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88551
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:10 +01:00
Tamás Zolnai
8f4143dd74 cypress: mobile: Update shape related focus test.
One tap on a shape does not move the focus on the document
since this commit:
9fcd4d3777

Change-Id: I5d176be7c5dd8296c642c41b8d1e2fcf5945ab27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88521
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 13:26:33 +01:00
Tamás Zolnai
aa9d676cd9 cypress: mobile: Test focus on second tap in Calc.
Change-Id: I1ce1b45f17f1d75c4bc7c1a6a63dfd05f2803612
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88520
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 13:26:22 +01:00
Tamás Zolnai
fe3d3e6998 cypress: mobile: Add some focus related tests (writer).
Change-Id: Ibe2ce81cfea0c0d4bf9af584c54e5ee8c1e356f1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88381
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-10 21:42:54 +01:00
Tamás Zolnai
b63c285075 cypress: mobile: Add example focus test for impress and calc.
Change-Id: I658cb7b59a2bb2a6f6a554c18aea7263063bd636
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88382
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-10 21:42:27 +01:00
Tamás Zolnai
65d8f4062f cypress: Fix tests failing with CI.
Change-Id: Iea1292bf44d77403356b3e9800c2af4c2237d08d
2020-02-08 17:43:30 +01:00
Tamás Zolnai
8dece1a3c3 cypress: mobile: Update some table related test cases.
Change-Id: I7c780785aab9db40e9b1f6312728ee5459e7716b
2020-02-07 12:31:43 +01:00
Tamás Zolnai
08d6c3fdf9 cypress: mobile: Font size combobox is broken on core/master.
Change-Id: I9d46d654cc3c890b610f99d02c9b91f057ae4e92
2020-02-07 10:50:00 +01:00
Tamás Zolnai
7124587e70 cypress: mobile: Update ColorPicker related tests.
Which were failing after a recent commit:
6dc92fb812

Change-Id: I79939c7bc7e2a26f6a235c5079976cd5adb31959
2020-02-07 10:23:05 +01:00
Tamás Zolnai
f53e030339 cypress: mobile: emulate tap and long press events.
To achive a better test covarage.
Now, the simple click() method is recognized
as 'tap' by hummerjs. For long press we need
to use low level events.
I expect that we can emulate other mobile events too
on a similar way.

Change-Id: I5f43afafe087133e707eed6ff8a43765324d5e24
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88161
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-07 10:09:54 +01:00
Tamás Zolnai
ce063cdce4 cypress: mobile: Do the core detection inside a beforeAllMobile method.
Change-Id: I80717c8aca5b7e75f282c38aaa1608ddd14facda
2020-02-06 14:23:34 +01:00
Tamás Zolnai
7578a50133 cypress: mobile: Fix styles related tests with core/master.
Change-Id: Ifc2d6e73bd903ae86203c75681b05e0cbd86591b
2020-02-06 14:23:34 +01:00
Tamás Zolnai
1b95d3fe1e cypress: mobile: Disable table related test cases for core/master.
SelectAll does not work for table for some reason.

Change-Id: Ie803d6f94bef0ac9052a5145a40330dcb7ff2f66
2020-02-06 14:23:34 +01:00
Tamás Zolnai
e6ee678592 cypress: Introduce a way to detect LO core version.
And disable some failing tests for core/master.
No idea why these items are missing from paragraph
panel with core/master. Seems a regression from cp-6-2
to master.

Change-Id: Ia91f38cbcf74d0b45730c8643559c298376ae153
2020-02-06 14:23:34 +01:00
Tamás Zolnai
1a8b128ac2 cypress: mobile: Add more tests for table panel of mobile wizard.
Change-Id: I4a3126ccb01ed7afdefd0de6bacec11d23a7406a
2020-02-05 13:44:18 +01:00
Tamás Zolnai
26bcd86640 cypress: mobile: Make this test more stable.
Change-Id: I8eb8381696c79c1e7a04b1cf88cab12c4c14de92
2020-02-04 15:44:22 +01:00
Tamás Zolnai
18b48ca022 cypress: mobile: Add tests for changing table layout.
Change-Id: If819b8cc7341eb8d82219458edfecddd7b4d7c2b
2020-02-04 15:33:49 +01:00
Tamás Zolnai
14ce7ab937 cypress: mobile: Introduce copyTableToClipboard() method.
And use it to check insert table's properties.

Change-Id: I7b188ddd139db2f6de5e2872277dce022073171d
2020-02-04 15:33:49 +01:00
Tamás Zolnai
8c9ef8db4c mobile: Hide new style button on mobile wizard.
It opens a tunneled dialog, what we try to avoid on mobile.
Also after the recent focus related changes this dialog
can't get the focus, so can't add the name of the new style.
Even if I workround this focus issue and I manage to add a new
style, then that style won't be part of the style list displayed
on the mobile wizard.
All in all adding new style does not work now, so better to hide
this item.

Change-Id: I35c3686129621656f3f63914c9590248f320c15d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87965
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-04 13:15:12 +01:00
Tamás Zolnai
c3c12e6fdf mobile: Remove linespacing item from mobile wizard.
In a desktop LO, this item opens a drop down list,
which seems to be not implemented in online yet.

Change-Id: Ia9d82cf9a058a43077043dc128dbbc16f18da83a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87772
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-04 11:14:03 +01:00
Tamás Zolnai
3a1cbc8027 mobile: Remove character spacing item from mobile wizard.
This item triggers the character dialog, which we should
avoid on mobile. In a desktop LO, this item opens a drop
down list, which seems to be not implemented in online yet.

Change-Id: I56a584e6665184c4242cddc4e78ba849a150c711
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87771
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-04 11:13:44 +01:00
Tamás Zolnai
e7d8c7456f cypress: mobile: Use a bigger mobile screen size.
Change-Id: Ica3598dd2f963b46891114a67c76f0d4da205c11
2020-02-03 06:37:36 +01:00
Tamás Zolnai
7a140da9c9 cypress: Make this desktop test case more stable.
Change-Id: I9aeb6a4c87a2a5a8a0ade320e993ad85ca4c9e82
2020-02-03 05:53:22 +01:00
Tamás Zolnai
1cfc1c59e9 cypress: Check the admin console to make sure the test document is closed.
Change-Id: I485e8596a30c7bb1efae140143627078cde66bca
2020-02-03 05:53:22 +01:00
Tamás Zolnai
40cd54320d cypress: mobile: Add tests for bottom toolbar items.
Change-Id: I35aa6231b3a0a16456ce08f1586687b9e73ef50f
2020-02-03 05:53:13 +01:00
Tamás Zolnai
978213a12d cypress: mobile: Add a small wait time for style applying code.
The sidebar / mobile wizard is rerendered randomly sometimes
which caused this test to fail.

Change-Id: I4d95cb783ca92a81ea2f6fcdc4e87efaa6747e0a
2020-02-03 05:53:06 +01:00
Tamás Zolnai
8ce8a90a37 cypress: mobile: Add some test about styles.
Change-Id: Ie61f5bd2a5203d501db60fc6f75e878c728d3a96
2020-02-02 12:23:18 +01:00
Tamás Zolnai
17803d5713 cypress: README: Add an example for it.only() usage.
Change-Id: I042b0f1bf05942b98bcd255f7bdf0241cfc3bfdd
2020-02-02 12:23:18 +01:00
Tamás Zolnai
ad0d6c5742 cypress: Update cypress version.
Change-Id: I3873ae24f30f04fa40f758f19ac77a78b63f5c26
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87770
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-31 15:33:05 +01:00
Tamás Zolnai
1a65e4040f cypress: Check JS errors in all test code.
Change-Id: Ifb33b98b5da61ac69cce91b9985e313863764d5c
2020-01-30 15:24:14 +01:00
Tamás Zolnai
43e09d20bb cypress: mobile: Extract after method to close document properly.
Change-Id: Id88aec59546cf1bdb51630405756a4321ecabd6c
2020-01-30 15:17:39 +01:00
Tamás Zolnai
92f93481dd cypress: mobile: Extract copy to clipboard method.
Change-Id: I1c4a74b7e50a1b8dae503c8fd8af04c9a49a07b6
2020-01-30 15:17:39 +01:00
Tamás Zolnai
8d906e4b1a cypress: mobile: Extract selection method.
Change-Id: I0fb69a9f5acf90ce76951a83b4220ac52e550fb2
2020-01-30 15:17:39 +01:00
Tamás Zolnai
d95f76438e cypress: mobile: Remove accidentally pushed it.only()
Change-Id: Ib6d747de11be654a86580993f4576d7c329423c1
2020-01-30 15:17:39 +01:00
Tamás Zolnai
5f7239054f cypress: mobile: Add some more insertion tests.
Change-Id: Ie918fa1c386e25b767340afc9ec2fc61d8038ced
2020-01-29 15:33:44 +01:00
Tamás Zolnai
434f89b10c cypress: mobile: Test applying paragraph properties.
Change-Id: Icee81a71dcbdd7888f77e8cd53d7f0b9234ea94c
2020-01-29 15:33:31 +01:00
Tamás Zolnai
fb892794e7 cypress: mobile: Test formatting mark insertion.
Change-Id: Ib3619e6830f25d7c78e369d714e0c4de6a47244b
2020-01-29 15:33:20 +01:00
Tamás Zolnai
d679f93c03 cypress: mobile: Test field insertion.
Change-Id: Ie7618436c57a30ef4282c042ff04262f55e0b17c
2020-01-29 15:33:08 +01:00
Tamás Zolnai
ab0ff320c1 cypress: mobile: Update table insertion test.
The HTML structure was changed.

Change-Id: I0b7ada0933ab6d5b13aa6b7f60fa17a07ac84951
2020-01-29 15:29:03 +01:00
Tamás Zolnai
17553b691f cypress: mobile: More font changes related tests.
Change-Id: I100b5904db47af1f1f612650f280bf2518c7fae7
2020-01-28 18:01:36 +01:00
Tamás Zolnai
2a82aa6db9 cypress: mobile: Add one use case to check font changes.
Use the clipboard code to generate the HTML of
the selected text, so we can check the font properties
in the document.

Change-Id: I43e5325b7fe0a9fda073c43335231e014374d6c2
2020-01-28 18:01:36 +01:00
Tamás Zolnai
89f05278bb cypress: Make test run fail when an exception is thrown.
Change-Id: Ie96cb771c9cec737c0352a843e42b14161cf9e7f
2020-01-27 17:17:04 +01:00
Tamás Zolnai
c4f66b32b7 mobile: Fix a console error triggered by a cypress test.
Now idea whether it happens in real life.

Change-Id: I172bf265dd2b8fdbc1d2759d8669bd90f9097336
2020-01-27 17:17:04 +01:00
Tamás Zolnai
4360aba862 cypress: mobile: Update shape insertion test case.
Now, that the insertion is fixed and works.

Change-Id: I89eaf83992cb55db05953727ea973fb0e6820ae4
2020-01-27 13:53:36 +01:00
Tamás Zolnai
38d2bd8768 cypress: mobile: Basic tests of insertion mobile wizard.
Change-Id: I2c2b2406ae390856c001dff1b4827586a40e05be
2020-01-26 06:42:53 +01:00
Tamás Zolnai
4bbcd50bc8 cypress: Make empty.odt test docs actually empty.
Change-Id: Ib6ab2da2b5dd2fa48b3aeedb8760a0acf5b6b5d7
2020-01-26 06:42:53 +01:00
Tamás Zolnai
517ebe5f2f cypress: Add a test case of shape insertion.
Change-Id: Ic76be157b6fb61c1fbc098ab4d2e627f9b25664e
2020-01-26 06:42:38 +01:00
Tamás Zolnai
1851110139 cypress: Add an example for copy-ing.
Unfortunatly cypress does not support clipboard events
by now.

Change-Id: Iffdaf0f15275ecb27aa3ebf2731c72cf4bdd46de
2020-01-26 02:41:06 +01:00
Tamás Zolnai
b64907e918 cypress: Extract test document loading code.
Change-Id: I77b2097bd9406ec63fbb9133678456444457ca2b
2020-01-26 02:41:06 +01:00
Tamás Zolnai
14764fd052 cypress: Add node_modules to eslintignore
Change-Id: Ifc8243b7b3a5cc6790209955249626b81f7ecdde
2020-01-24 09:30:48 +01:00
Tamás Zolnai
4bb0372604 cypress: Update README
Change-Id: I98e83a77ae490890aeb515eeb4e03eb18093c694
2020-01-23 14:55:50 +01:00
Tamás Zolnai
0145c03ed6 cypress: Introduce an --enable-cypress config option.
Removing the cypress_test subdir from top level
folder made the packaging process to fail.
So better to use a flag to enable cypress tests.

Change-Id: Iead4b7cbbea5c6aaba18c0b85f23d67a4fbe920b
2020-01-23 14:55:43 +01:00
Tamás Zolnai
34015a5798 cypress: Use a bigger timeout for document load.
Change-Id: I8bc142468fb301e8aa6fc12d5f271421fb68ee8c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87220
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-22 21:21:55 +01:00
Tamás Zolnai
ce56626bea cypress: Update mobile test cases.
Mobile wizard was changed in the meantime.

Change-Id: Ic4813b10f946e58878bbc2dd926570e2e712606a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87212
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-22 21:12:02 +01:00
Miklos Vajna
ed586d9601 cypress: accept chromium next to chrome
Change-Id: Id2a577b1413227840e2af29abe4cc96e5a81dd82
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87191
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
2020-01-22 18:59:46 +01:00
Tamás Zolnai
33245f42ab cypress: Disable SSL for the test loolwsd server.
Change-Id: I613768b3a91e5f34c64495cb5ca13312210f3549
2020-01-22 12:55:13 +01:00
Tamás Zolnai
d87fab2acf cypress: Don't use hardcoded wsd hash.
Change-Id: Iff7296c6a9def8df9ddb6d78a29e0adf64436b7e
2020-01-22 12:55:13 +01:00
Tamás Zolnai
2165ffa38c cypress: README: Add some installation \ test runner info.
Change-Id: I71eccf7e72eb634e83d97f89ea2c55d684009a19
2020-01-22 12:55:13 +01:00
Tamás Zolnai
b06ec9c71b cypress: let's have these two commands in separate lines.
Change-Id: Idf7856518121ca2ce84a9eb8f77b6f596a21ca18
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87156
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-21 18:47:02 +01:00
Tamás Zolnai
8081afc8e0 eslint: Enable "semi" rule as an error.
This checks whether all statements end with a semicolon.
We already use this rule in the code, so I enable to check
this rule by eslint to keep the code consistent.

Change-Id: I5ea46376d2b6fb488224d4d69e4d117139763a8c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87154
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-21 18:32:33 +01:00
Tamás Zolnai
c782c033b0 cypress: Use a better wait method for loolwsd server
Use the wait-on npm module for this.

Change-Id: I602f95aa79d46cf7b55bcc598e612bbc5342c52b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87150
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-21 17:37:28 +01:00
Tamás Zolnai
7da6ea8404 cypress: mobile: Fix 'Close mobile wizard by context wizard' test case
It needs a better indicator that the mobile wizard actually opened
with the right content.

Change-Id: If1d146a6b02b2b5f79e1ac627dbec4fc43906f43
2020-01-21 16:13:01 +01:00
Tamás Zolnai
8f498034a2 cypress: Update README with instructions how to run one test case.
Change-Id: Ib6e80f92d64565471f30abc89b3ed4a1bbcebb20
(cherry picked from commit e11c0f8efa8a873eb699873613e86395d7e23200)
2020-01-21 16:13:01 +01:00
Tamás Zolnai
e82719b99e cypress: mobile: Add some tests about the state of mobile wizard.
Change-Id: I38869d7fcc03690610a19c7803a596cfebf75c7a
2020-01-21 16:13:01 +01:00
Tamás Zolnai
76c01fbe82 cypress: mobile: Fix mobile wizard id.
Change-Id: I171f98705e894f5a73afd7c92b489620f3bec4ac
2020-01-21 16:13:01 +01:00
Tamás Zolnai
abac31d4fe cypress: Remove obsolete scripts.
These were replaced by make commands.

Change-Id: I98978b52801b44a36c09388cf5eb3ed5a09326c3
2020-01-21 16:13:01 +01:00
Tamás Zolnai
58d99a8f61 cypress: mobile: add some examples for testing focus.
Change-Id: I63267bdd1d4b4db0d30da78c61b82c5d7d5535dc
2020-01-21 16:13:01 +01:00
Tamás Zolnai
d5f698acd5 cypress: Don't run npm install unconditionally.
Change-Id: I51ff6e7706075d15c213617fede89088499226ed
2020-01-21 16:13:01 +01:00
Tamás Zolnai
a410b54c47 cypress: Introduce more make rules to make easier to run tests.
Change-Id: Ic8ae881864ae931fe6abed73a6a6086d6e0e591d
2020-01-21 16:13:01 +01:00
Tamás Zolnai
545f3f9431 cypress: Introduce make rules for running group of tests.
It can handle dependencies and can use environment
variables.

Change-Id: Ib386cb7019d85b3dbd6c28417b3a481944b18aca
2020-01-21 16:13:01 +01:00
Tamás Zolnai
d413d55f91 cypress: Use eslint to check coding conventions during build.
Use loleaflet's config file to have the same
conventions under cypress_test folder too.
Update test code to pass esling check.

Change-Id: Iade932e6d3cd8941b5fc0897c56c68d2493f0dce
2020-01-21 16:13:01 +01:00
Tamás Zolnai
d614865b46 cypress: Move general cypress options to cypress.json
Change-Id: Iad6263f31ec9ef813424e4aab673c2ade1f7f3e5
2020-01-21 16:13:01 +01:00
Tamás Zolnai
eb47f78824 cypress: Move plugins folder out of cypress subfolder
Change-Id: Ia3a9a58b7f7e5e64c1e2f4211b75a33bbbb00c0e
2020-01-21 16:13:01 +01:00
Tamás Zolnai
aab8b4ada6 cypress: Always create a copy of the test document.
Before test execution. So the modifications won't
change the test documents.

Change-Id: I1b04fe96e8182033d44aeeaa3a7632dd81031a05
2020-01-21 16:13:01 +01:00
Tamás Zolnai
c5478b7a66 cypress: Use env variable to get file path.
Instead of a hard coded one. Also create new
test documents for cypress tests.

Change-Id: I5f9b2c6914669f77742e1a011d736bbf18c54877
2020-01-21 16:13:01 +01:00
Tamás Zolnai
20e5295ddd cypress: Make sure loolwsd is killed after make check.
Even if ony of the tests fails.

Change-Id: I18e7daff854fd51d4ba374d9d537ba76e171269c
2020-01-21 16:13:01 +01:00
Tamás Zolnai
66eb121856 cypress: Running make check locally works better then cyrun.
Change-Id: Ifcbefa925b3b46e7955cd3cfb107b105f053cf59
2020-01-21 16:13:01 +01:00
Tamás Zolnai
96c9e57894 cypress: mobile: Add some tests about pushing toolbar items.
Change-Id: I2b40dbee18fa04fbece4f4da0630e3ac619e0968
2020-01-21 16:13:01 +01:00
Tamás Zolnai
740267611f cypress: Update README about test execution.
Change-Id: I6c7b7fd8c77f89289630a06f9dbaf94ae5082aa8
2020-01-21 16:13:01 +01:00
Tamás Zolnai
11ef897266 cypress: Added a better wait method for document load.
Change-Id: I482df38159009f5583ad7ed9f676e09a350bb0a8
2020-01-21 16:13:01 +01:00
Tamás Zolnai
66d89d749f cypress: Run tests only if HAVE_LO_PATH is set.
Change-Id: I7d3103aa787f5bb1ed28a477276f2a656a915737
2020-01-21 16:13:01 +01:00
Tamás Zolnai
893a3df57b cypress: Add package-lock.json to gitignore
Change-Id: I3ec64262a50e6edf6116f5b7c546ee3a84d4d449
2020-01-21 16:13:01 +01:00
Tamás Zolnai
f2444df726 cypress: Add some commands to make easier to run tests.
Change-Id: I9428522717d3912ca20374a1efb1c61999ffc77f
2020-01-21 16:13:01 +01:00
Tamás Zolnai
d3dd01eb1b cypress: mobile: Add more tests for toolbar.
Change-Id: I144982a796e2e1c5178bdefa27575a0cfe47439b
2020-01-21 16:13:01 +01:00
Tamás Zolnai
524bbb3398 cypress: Initial integration of cypress test framework.
Change-Id: Ibf300b33d32ce3e7f1affbaf0a59364ddb618b56
2020-01-21 16:13:01 +01:00