[browser test] Remove old hooks after refactoring all tests

Change-Id: I5782886fbaed8b520a5af727a5938f670d747c9b
This commit is contained in:
cmcmahon 2014-05-09 10:53:16 -07:00
parent 0ff3cf3436
commit e47d02adb1

View file

@ -2,31 +2,12 @@ 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
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=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
$edit_user_page_login=true
end
end