mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
26a4623ddd
This reverts commit 9a20fc03b7
.
This change appears to have completely broken the VisualEditor browser tests :(
Change-Id: Ia2753f0718ccc5ac5ce7b726bd89040171feae7c
26 lines
740 B
Ruby
26 lines
740 B
Ruby
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 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 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
|
|
end
|
|
end
|