mediawiki-extensions-Visual.../modules/ve-mw/tests/browser/features/support/hooks.rb
Cmcmahon 95a798867c [BrowserTest] rubocop proper format for comments
Change-Id: I2fe136f29e0bc430420a0931092695d3f4147112
2014-11-21 09:21:53 -07:00

18 lines
464 B
Ruby

at_exit do
$browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
end
# This is for the multiedit test
Before('@edit_user_page_login') do
if (!$edit_user_page_login || !(ENV['REUSE_BROWSER'] == 'true')) && @browser
step 'I am logged in'
step 'I go to the browser specific edit page page'
step 'I edit the page with Editing with'
$edit_user_page_login = true
end
end
Before('@language_screenshot') do |scenario|
@scenario = scenario
end