Refactoring tests

Collaboratively

Change-Id: I6c5417a0681f9bb8596c36600a569df2ddd7bf9e
This commit is contained in:
Niklas Laxström
2013-09-16 15:54:09 -07:00
parent 6338d73c0e
commit f43a00d5b8
5 changed files with 32 additions and 11 deletions

View File

@@ -25,12 +25,6 @@ Given(/^I temporarily use "(.*?)" as the interface language$/) do |language|
visit(ULSPage, :using_params => {:extra => "uselang=#{code}"})
end
Given(/^the content language is "(.*?)"$/) do |language|
code = language_to_code(language)
actual = @browser.execute_script( "return mw.config.get( 'wgContentLanguage' )" )
actual.should == code
end
Given(/^the interface language is "(.*?)"$/) do |language|
# phantomjs needs little bit time because it executes the script before
# the page is fully loaded