mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
cmcmahon e47d02adb1 [browser test] Remove old hooks after refactoring all tests
Change-Id: I5782886fbaed8b520a5af727a5938f670d747c9b
2014-05-09 10:54:23 -07:00

14 lines
366 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 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 Editing with"
$edit_user_page_login=true
end
end