2014-02-07 01:51:38 +00:00
|
|
|
at_exit do
|
2014-11-21 16:06:09 +00:00
|
|
|
$browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
|
2014-02-07 01:51:38 +00:00
|
|
|
end
|
|
|
|
|
2014-11-21 16:21:53 +00:00
|
|
|
# This is for the multiedit test
|
2014-11-21 16:06:09 +00:00
|
|
|
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'
|
2014-11-20 18:55:18 +00:00
|
|
|
$edit_user_page_login = true
|
2013-09-25 17:11:03 +00:00
|
|
|
end
|
2013-10-04 15:44:34 +00:00
|
|
|
end
|
2014-05-27 19:40:26 +00:00
|
|
|
|
2014-11-21 16:06:09 +00:00
|
|
|
Before('@language_screenshot') do |scenario|
|
2014-05-27 19:40:26 +00:00
|
|
|
@scenario = scenario
|
2014-06-26 14:06:50 +00:00
|
|
|
end
|