mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
cmcmahon ca2a7ce38f [browser test] input string no longer hard coded
Change-Id: I361b3ea025e405d1fc5a2e12c3c85d177147b90d
2013-11-06 17:08:42 -07:00

26 lines
727 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 test and the indent-outdent test
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