mediawiki-extensions-Visual.../modules/ve-mw/test/browser/features/support/hooks.rb
cmcmahon 5d84372f36 make test DRY, use Before hook
Change-Id: I6f127e675a3c9e7b6126c0f052dce781d1103b52
2013-09-26 18:01:37 +00:00

9 lines
230 B
Ruby

Before('@edit_user_page') do
if !$set_up_edited_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'
$set_up_edited_page=true
end
end