mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-04 10:48:52 +00:00
904c5a48ad
Bug: 53579 Change-Id: I4ef8b63f485b0274f252cf95e566f0484615e8cf
26 lines
693 B
Ruby
26 lines
693 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')
|
|
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
|