DCausse has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/395040 )

Change subject: Small adjustments to nodejs integration tests
......................................................................

Small adjustments to nodejs integration tests

Adjust some timeouts
Be more precise in smoke test to avoid failures

Change-Id: Ie4a4fa65763c1be3c224b89c8f3e0891e5c21558
---
M tests/integration/features/smoke.feature
M tests/integration/features/step_definitions/page_step_helpers.js
M tests/integration/features/support/hooks.js
3 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/40/395040/1

diff --git a/tests/integration/features/smoke.feature 
b/tests/integration/features/smoke.feature
index a656e21..860bfe5 100644
--- a/tests/integration/features/smoke.feature
+++ b/tests/integration/features/smoke.feature
@@ -15,7 +15,7 @@
   @en.wikipedia.beta.wmflabs.org  @expect_failure
   Scenario: Search suggestions
     Given I am at a random page
-    When I type main into the search box
+    When I type main p into the search box
     Then suggestions should appear
     And Main Page is the first suggestion
 
diff --git a/tests/integration/features/step_definitions/page_step_helpers.js 
b/tests/integration/features/step_definitions/page_step_helpers.js
index 0b37135..73829bb 100644
--- a/tests/integration/features/step_definitions/page_step_helpers.js
+++ b/tests/integration/features/step_definitions/page_step_helpers.js
@@ -145,7 +145,7 @@
                return new Promise( ( resolve ) => setTimeout( resolve, ms ) );
        }
 
-       waitForOperation( operation, title, timeoutMs = 30000 ) {
+       waitForOperation( operation, title, timeoutMs = 60000 ) {
                return Promise.coroutine( function* () {
                        let start = new Date();
                        if ( ( operation === 'upload' || operation === 
'uploadOverwrite' ) && title.substr( 0, 5 ) !== 'File:' ) {
diff --git a/tests/integration/features/support/hooks.js 
b/tests/integration/features/support/hooks.js
index 772db52..e1d761d 100644
--- a/tests/integration/features/support/hooks.js
+++ b/tests/integration/features/support/hooks.js
@@ -483,7 +483,7 @@
                }
        } ) );
 
-       BeforeOnce( { tags: "@go or @options", timeout: 60000 }, runBatchFn( {
+       BeforeOnce( { tags: "@go or @options", timeout: 120000 }, runBatchFn( {
                edit: {
                        'son Nearmatchflattentest': 'son Nearmatchflattentest',
                        'Son Nearmatchflattentest': 'Son Nearmatchflattentest',
@@ -544,7 +544,7 @@
                }
        } ) );
 
-       BeforeOnce( { tags: "@relevancy" }, runBatchFn( {
+       BeforeOnce( { tags: "@relevancy", timeout: 120000 }, runBatchFn( {
                edit: {
                        'Relevancytest': 'it is not relevant',
                        'Relevancytestviaredirect': 'not relevant',

-- 
To view, visit https://gerrit.wikimedia.org/r/395040
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4a4fa65763c1be3c224b89c8f3e0891e5c21558
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to