libreoffice-online/cypress_test
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
..
data cypress: Use env variable to get file path. 2020-01-21 16:13:01 +01:00
integration_tests cypress: mobile: Add some tests about the state of mobile wizard. 2020-01-21 16:13:01 +01:00
plugins cypress: Use eslint to check coding conventions during build. 2020-01-21 16:13:01 +01:00
.eslintignore cypress: Use eslint to check coding conventions during build. 2020-01-21 16:13:01 +01:00
.gitignore cypress: Move plugins folder out of cypress subfolder 2020-01-21 16:13:01 +01:00
cypress.json cypress: Move general cypress options to cypress.json 2020-01-21 16:13:01 +01:00
Makefile.am cypress: Don't run npm install unconditionally. 2020-01-21 16:13:01 +01:00
package.json cypress: Remove obsolete scripts. 2020-01-21 16:13:01 +01:00
README cypress: Introduce more make rules to make easier to run tests. 2020-01-21 16:13:01 +01:00

Cypress based test framework for LibreOffice Online
====================================================

Running tests
------------------

All tests are part of the make check build. So you can
just execute it from the root folder or under the
cypress_test folder to run cypress tests only.

    make check

To run cypress test cases selectively, you need to
go in to the cypress_test folder first and run one of
the following commands.

To run all desktop tests:

    make check-desktop

To run all mobile tests:

    make check-mobile

To run one specific test suit of desktop tests:

    make check-desktop spec=example_desktop_test_spec.js

To run one specific test suit of mobile tests:

    make check-mobile spec=toolbar_spec.js

You can also open cypress tests in the browser, so you can
check what happens during test run. It's useful for writing
new tests or checking why an existing test fails.

To open desktop tests in browser:

    make run-desktop

To open mobile tests in browser:

    make run-mobile

During the build we run the tests with Chrome browser, so make sure
you select Chrome browser on the GUI while checking tests.