Moved Cucumber hooks to hooks.rb file

Bug: 49812
Change-Id: Ib927b824a8854d1c4257a17db582595a22d70470
This commit is contained in:
Zeljko Filipin
2013-10-01 16:36:38 +02:00
committed by Cmcmahon
parent 2c4a906889
commit 5a808ef394
4 changed files with 47 additions and 49 deletions

View File

@@ -56,11 +56,6 @@ def get_interface_font()
get_font('body')
end
After('@reset-preferences-after') do |scenario|
visit(ResetPreferencesPage)
on(ResetPreferencesPage).submit_element.click
end
def uls_position()
if !defined?($uls_position)
visit(PanelPage)
@@ -69,15 +64,3 @@ def uls_position()
$uls_position
end
end
Before('@uls-in-sidebar-only') do |scenario|
if uls_position() != 'interlanguage'
scenario.skip_invoke!
end
end
Before('@uls-in-personal-only') do |scenario|
if uls_position() != 'personal'
scenario.skip_invoke!
end
end