2014-01-31 02:02:56 +00:00
|
|
|
at_exit do
|
|
|
|
$browser.close unless ENV["KEEP_BROWSER_OPEN"] == "true"
|
|
|
|
end
|
|
|
|
|
2013-09-27 17:49:51 +00:00
|
|
|
#This is for the Headings test
|
2013-11-26 20:14:30 +00:00
|
|
|
Before("@edit_user_page") 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"
|
2013-09-27 17:49:51 +00:00
|
|
|
$edit_user_page=true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-11-19 21:42:07 +00:00
|
|
|
#This is for the bullets, indent-outdent, and the General Markup tests
|
2013-11-26 20:14:30 +00:00
|
|
|
Before("@make_selectable_line") do
|
|
|
|
if (!$make_selectable_line or !(ENV["REUSE_BROWSER"] == "true")) and @browser
|
|
|
|
step "I am logged in"
|
|
|
|
step "I am at my user page"
|
|
|
|
step "I click Edit for VisualEditor"
|
|
|
|
step "I type in an input string"
|
|
|
|
step "select the string"
|
2013-09-27 17:49:51 +00:00
|
|
|
$make_selectable_line=true
|
2013-09-25 17:11:03 +00:00
|
|
|
end
|
2013-10-04 15:44:34 +00:00
|
|
|
end
|