mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
cmcmahon f5e18e45a2 refactor to use Scenario Outline and REUSE_BROWSER env var
Change-Id: I65970c0df35bcac48f16899090cadc8df8c560c6
2013-09-27 11:36:53 -07:00

22 lines
618 B
Ruby

#This is for the Headings test
Before('@edit_user_page') do
if !$edit_user_page or !(ENV['REUSE_BROWSER'] == 'true')
step 'I am logged in'
step 'I am at my user page'
step 'I edit the page with a string'
$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')
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