mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
[browser test] Remove old hooks after refactoring all tests
Change-Id: I5782886fbaed8b520a5af727a5938f670d747c9b
This commit is contained in:
parent
0ff3cf3436
commit
e47d02adb1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue