mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
Cmcmahon e9cc4b441b [BrowserTest] Update login tests to use api
This should make it possible to run all of the VE test suite
against an arbitrary wiki (with VE installed) including
the latest vagrant image with VisualEditor role enabled

Tested on the vagrant image and on beta labs

Change-Id: Ib249e4ffb607210756bb110187c7e2864b0c83f5
2014-06-11 09:14:17 -07:00

14 lines
389 B
Ruby

at_exit do
$browser.close unless ENV["KEEP_BROWSER_OPEN"] == "true"
end
#This is for the multiedit test
Before("@edit_user_page_login") do
if (!$edit_user_page_login or !(ENV["REUSE_BROWSER"] == "true")) and @browser
step "I am logged in"
step "I go to the browser specific edit page page"
step "I edit the page with Editing with"
$edit_user_page_login=true
end
end