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