Selenium: Daily Jenkins job targeting beta cluster should run only tests that pass
authorŽeljko Filipin <zeljko.filipin@gmail.com>
Tue, 4 Sep 2018 09:27:01 +0000 (11:27 +0200)
committerŽeljko Filipin <zeljko.filipin@gmail.com>
Tue, 4 Sep 2018 10:47:07 +0000 (12:47 +0200)
Selenium tests run fine when targeting MediaWiki installation in
MediaWiki-Vagrant and in Jenkins, but fail when targeting beta cluster.
Until tests are refactored to run without failure for beta cluster, let's disable
failing tests.

Bug: T185011
Change-Id: I12da893e7d624d4ebe478bccf0706aa07c965796

package.json
tests/selenium/specs/page.js
tests/selenium/specs/user.js
tests/selenium/wdio-mediawiki/specs/BlankPage.js

index d75c151..2c74f2a 100644 (file)
@@ -6,7 +6,7 @@
     "doc": "jsduck",
     "postdoc": "grunt copy:jsduck",
     "selenium": "bash ./tests/selenium/selenium.sh",
-    "selenium-daily": "npm run selenium-test",
+    "selenium-daily": "npm run selenium-test -- --mochaOpts.grep @daily",
     "selenium-test": "wdio ./tests/selenium/wdio.conf.js"
   },
   "devDependencies": {
index 6a394d8..124279c 100644 (file)
@@ -54,7 +54,7 @@ describe( 'Page', function () {
                assert.strictEqual( EditPage.displayedContent.getText(), content );
        } );
 
-       it( 'should be editable', function () {
+       it( 'should be editable @daily', function () {
                // create
                browser.call( function () {
                        return Api.edit( name, content );
@@ -69,7 +69,7 @@ describe( 'Page', function () {
                assert.strictEqual( EditPage.displayedContent.getText(), editContent );
        } );
 
-       it( 'should have history', function () {
+       it( 'should have history @daily', function () {
                // create
                browser.call( function () {
                        return Api.edit( name, content );
index 4884ded..d55ff4c 100644 (file)
@@ -29,7 +29,7 @@ describe( 'User', function () {
                assert.strictEqual( CreateAccountPage.heading.getText(), `Welcome, ${username}!` );
        } );
 
-       it( 'should be able to log in', function () {
+       it( 'should be able to log in @daily', function () {
                // create
                browser.call( function () {
                        return Api.createAccount( username, password );
index 8cb46d4..f9cadcd 100644 (file)
@@ -2,7 +2,7 @@ const assert = require( 'assert' ),
        BlankPage = require( 'wdio-mediawiki/BlankPage' );
 
 describe( 'BlankPage', function () {
-       it( 'should have its title', function () {
+       it( 'should have its title @daily', function () {
                BlankPage.open();
 
                // check