mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
Jhall 6d2447ca74 Revert "[Browser test] Reintroduce headless browser test support"
This reverts commit 8e8525dea9.

This change seems to have broken all of the VisualEditor browser tests, similar to our first attempt at solving the same problem - not good :(

Change-Id: I5fa70a1164ebe8de1ecc37f72ba7ceffdc31e7bd
2014-02-07 01:51:38 +00:00

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