mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
cmcmahon 0fb393823d [browser test] use ?veaction=edit to avoid login where feasible
First pass, more examination to follow. After this builds will
continue to be green.

Change-Id: I8e63046ec72ae9708d1fe708b8ee86a688ccb73c
2014-04-28 15:38:18 -04:00

33 lines
927 B
Ruby

at_exit do
$browser.close unless ENV["KEEP_BROWSER_OPEN"] == "true"
end
#This is for the Headings test
Before("@edit_user_page") do
if (!$edit_user_page or !(ENV["REUSE_BROWSER"] == "true")) and @browser
step "I am at my user page"
step "I edit the page with Editing with"
$edit_user_page=true
end
end
#This is for the multiedit test
Before("@edit_user_page_login") do
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 Editing with"
$edit_user_page=true
end
end
#This is for the bullets, indent-outdent, and the General Markup tests
Before("@make_selectable_line") do
if (!$make_selectable_line or !(ENV["REUSE_BROWSER"] == "true")) and @browser
step "I am at my user page"
step "I type in an input string"
step "select the string"
$make_selectable_line=true
end
end