More refactoring of tests per feature
Change-Id: Ie9acf09f9bb992f6e03ff6dfbb80e1e20a9d43ca
This commit is contained in:
@@ -46,3 +46,13 @@ Before('@uls-in-sidebar-only') do |scenario|
|
||||
scenario.skip_invoke!
|
||||
end
|
||||
end
|
||||
|
||||
Before('@uls-in-personal-only') do |scenario|
|
||||
if !defined?($uls_position)
|
||||
visit(ULSPage)
|
||||
$uls_position = @browser.execute_script( "return mw.config.get( 'wgULSPosition' )" );
|
||||
end
|
||||
if $uls_position != 'personal'
|
||||
scenario.skip_invoke!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user