[Libreoffice-commits] online.git: Branch 'feature/cypress_integration' - 3 commits - cypress_test/integration_tests cypress_test/README Makefile.am

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 21 14:02:49 UTC 2020


 Makefile.am                                                       |    2 +-
 cypress_test/README                                               |    7 +++++++
 cypress_test/integration_tests/mobile/mobile_wizard_state_spec.js |    2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 0ca53c71670b04a880bb423bff5b06ef9f05758f
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Jan 20 16:25:58 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Jan 20 16:25:58 2020 +0100

    cypress: Update README with instructions how to run one test case.
    
    Change-Id: Ib6e80f92d64565471f30abc89b3ed4a1bbcebb20

diff --git a/cypress_test/README b/cypress_test/README
index 0bc100241..04fc24e31 100644
--- a/cypress_test/README
+++ b/cypress_test/README
@@ -30,6 +30,13 @@ To run one specific test suit of mobile tests:
 
     make check-mobile spec=toolbar_spec.js
 
+To run one test case of a test suit you can use Mocha's
+'only' feature. Just replace the it(...) function with
+it.only(...) in the spec file for the selected test case
+and run the test suit using the spec parameter (see above).
+This 'only' feature affects both make check and make run
+commands.
+
 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.
commit 26554814a645304e51b692b0d3add1b1271bde34
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Jan 20 16:20:27 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Jan 20 16:20:29 2020 +0100

    cypress: Fix name of mobile wizard test suit.
    
    Change-Id: I12d6e2d2027d594ea88eeb7281ae72b464814887

diff --git a/cypress_test/integration_tests/mobile/mobile_wizard_state_spec.js b/cypress_test/integration_tests/mobile/mobile_wizard_state_spec.js
index e25fdb343..453dd32f5 100644
--- a/cypress_test/integration_tests/mobile/mobile_wizard_state_spec.js
+++ b/cypress_test/integration_tests/mobile/mobile_wizard_state_spec.js
@@ -1,6 +1,6 @@
 /* global describe it cy Cypress beforeEach*/
 
-describe('Toolbar tests', function() {
+describe('Mobile wizard state tests', function() {
 	beforeEach(function() {
 		// Get a clean test document
 		cy.task('copyFile', {
commit 0b8f4a628a1d05dff7538712633d08a83c54fcff
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Jan 20 15:26:44 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Jan 20 15:26:44 2020 +0100

    cypress: Don't run cypress test for top level make check for now.
    
    Change-Id: I06c724e82b3717e36a7a4550118baba3aac1a7f6

diff --git a/Makefile.am b/Makefile.am
index c6d417185..d17bb8d99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,7 +14,7 @@ endif
 
 else
 
-SUBDIRS = . test loleaflet cypress_test
+SUBDIRS = . test loleaflet
 
 export ENABLE_DEBUG
 


More information about the Libreoffice-commits mailing list