Zfilipin has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91876


Change subject: [browser test] Workaround for the problem when Cucumber hook 
executes twice
......................................................................

[browser test] Workaround for the problem when Cucumber hook executes twice

Bug: 56116
Change-Id: I99bf48b1452647b42edd97dc47e8664b08b7667a
---
M modules/ve-mw/test/browser/features/support/hooks.rb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/76/91876/1

diff --git a/modules/ve-mw/test/browser/features/support/hooks.rb 
b/modules/ve-mw/test/browser/features/support/hooks.rb
index 14c7841..b7bf553 100644
--- a/modules/ve-mw/test/browser/features/support/hooks.rb
+++ b/modules/ve-mw/test/browser/features/support/hooks.rb
@@ -4,7 +4,7 @@
 
 #This is for the Headings test
 Before('@edit_user_page') do
-  if !$edit_user_page or !(ENV['REUSE_BROWSER'] == 'true')
+  if (!$edit_user_page or !(ENV['REUSE_BROWSER'] == 'true')) and @browser
     step 'I am logged in'
     step 'I am at my user page'
     step 'I edit the page with a string'

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I99bf48b1452647b42edd97dc47e8664b08b7667a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>

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

Reply via email to