2013-10-04 15:44:34 +00:00
|
|
|
at_exit do
|
|
|
|
$browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
|
|
|
|
end
|
2013-09-25 17:11:03 +00:00
|
|
|
|
2013-09-27 17:49:51 +00:00
|
|
|
#This is for the Headings test
|
2013-09-25 17:11:03 +00:00
|
|
|
Before('@edit_user_page') do
|
2013-10-25 15:26:05 +00:00
|
|
|
if (!$edit_user_page or !(ENV['REUSE_BROWSER'] == 'true')) and @browser
|
2013-09-25 17:11:03 +00:00
|
|
|
step 'I am logged in'
|
|
|
|
step 'I am at my user page'
|
2013-11-07 00:08:03 +00:00
|
|
|
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-09-27 17:49:51 +00:00
|
|
|
Before('@make_selectable_line') do
|
2013-10-28 15:38:29 +00:00
|
|
|
if (!$make_selectable_line or !(ENV['REUSE_BROWSER'] == 'true')) and @browser
|
2013-09-27 17:49:51 +00:00
|
|
|
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'
|
|
|
|
$make_selectable_line=true
|
2013-09-25 17:11:03 +00:00
|
|
|
end
|
2013-10-04 15:44:34 +00:00
|
|
|
end
|