Commit graph

49 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
58d99a8f61 cypress: mobile: add some examples for testing focus.
Change-Id: I63267bdd1d4b4db0d30da78c61b82c5d7d5535dc
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
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
96c9e57894 cypress: mobile: Add some tests about pushing toolbar items.
Change-Id: I2b40dbee18fa04fbece4f4da0630e3ac619e0968
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
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