Prefer double-quoted strings in Ruby code
Bug: 57597 Change-Id: I12b96411abe255130e156e20fa41eef558460196
This commit is contained in:
@@ -16,15 +16,15 @@ Given(/^I am on a talk page without interlanguage links$/) do
|
||||
end
|
||||
|
||||
Given(/^I navigate to the anonymous Language Settings panel$/) do
|
||||
step 'I am on a page with interlanguage links'
|
||||
step 'I click the cog icon by Languages in the sidebar'
|
||||
step 'I see the logged out language settings panel'
|
||||
step "I am on a page with interlanguage links"
|
||||
step "I click the cog icon by Languages in the sidebar"
|
||||
step "I see the logged out language settings panel"
|
||||
end
|
||||
|
||||
Given(/^I navigate to the Language Settings panel$/) do
|
||||
step 'I am on a page with interlanguage links'
|
||||
step 'I click the cog icon by Languages in the sidebar'
|
||||
step 'I see the logged in language settings panel'
|
||||
step "I am on a page with interlanguage links"
|
||||
step "I click the cog icon by Languages in the sidebar"
|
||||
step "I see the logged in language settings panel"
|
||||
end
|
||||
|
||||
When(/^I click Cancel$/) do
|
||||
@@ -81,7 +81,7 @@ Then(/^I do not see the Language Settings panel$/) do
|
||||
end
|
||||
|
||||
Then(/^I see Common Languages$/) do
|
||||
on(InterlanguagePage).language_list.should match Regexp.escape('Common languages')
|
||||
on(InterlanguagePage).language_list.should match Regexp.escape("Common languages")
|
||||
end
|
||||
|
||||
Then(/^I see Language Search$/) do
|
||||
@@ -106,19 +106,19 @@ end
|
||||
|
||||
Then(/^I see Worldwide$/) do
|
||||
on(InterlanguagePage) do |page|
|
||||
page.language_list.should match Regexp.escape('Worldwide')
|
||||
page.language_list.should match Regexp.escape("Worldwide")
|
||||
page.english_link_element.should be_visible
|
||||
end
|
||||
end
|
||||
|
||||
Then(/^I click the cog icon to open language settings again$/) do
|
||||
step 'I click the cog icon by Languages in the sidebar'
|
||||
step 'I see the logged out language settings panel'
|
||||
step "I click the cog icon by Languages in the sidebar"
|
||||
step "I see the logged out language settings panel"
|
||||
end
|
||||
|
||||
Then(/^the cog icon brings up Language Settings again$/) do
|
||||
step 'I click the cog icon by Languages in the sidebar'
|
||||
step 'I see the Language Settings panel'
|
||||
step "I click the cog icon by Languages in the sidebar"
|
||||
step "I see the Language Settings panel"
|
||||
end
|
||||
|
||||
Then(/^I should see the How to use link near the Malayalam transliteration item$/) do
|
||||
|
||||
@@ -6,7 +6,7 @@ Given(/^I am logged out$/) do
|
||||
end
|
||||
|
||||
Given(/^I am logged in$/) do
|
||||
visit(LoginPage).login_with(ENV['MEDIAWIKI_USER'], ENV['MEDIAWIKI_PASSWORD'])
|
||||
visit(LoginPage).login_with(ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"])
|
||||
end
|
||||
|
||||
Given(/^I set "(.*?)" as the interface language$/) do |language|
|
||||
@@ -23,5 +23,5 @@ end
|
||||
|
||||
Then(/^my interface language is "(.*?)"$/) do |language|
|
||||
code = on(PanelPage).language_to_code(language)
|
||||
on(PanelPage).interface_element.attribute('lang').should == code
|
||||
on(PanelPage).interface_element.attribute("lang").should == code
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ Given(/^I open ULS$/) do
|
||||
end
|
||||
|
||||
Then(/^the active content font must be the same as font prior to the preview$/) do
|
||||
pending('bug #56081') do
|
||||
pending("bug #56081") do
|
||||
on(PanelPage).content_font.should == @original_content_font
|
||||
end
|
||||
end
|
||||
@@ -13,8 +13,8 @@ Then(/^the active interface font must be the same as font prior to the preview$/
|
||||
end
|
||||
|
||||
Then(/^the selected content font must be "(.*?)"$/) do |font|
|
||||
step 'I open Display panel of language settings'
|
||||
step 'I open Fonts panel of language settings'
|
||||
step "I open Display panel of language settings"
|
||||
step "I open Fonts panel of language settings"
|
||||
on(PanelPage).selected_content_font.should == font
|
||||
end
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ When(/^I click on the input method indicator$/) do
|
||||
end
|
||||
|
||||
When(/^I open the input method menu$/) do
|
||||
step 'I click on an input box'
|
||||
step "I click on an input box"
|
||||
on(IMEPage).input_method_element.when_present.click
|
||||
end
|
||||
|
||||
@@ -51,7 +51,7 @@ When(/^I click on the Malayalam InScript 2 menu item$/) do
|
||||
end
|
||||
|
||||
When(/^I press Control-M$/) do
|
||||
on(IMEPage).search_input_element.send_keys [:control, 'm']
|
||||
on(IMEPage).search_input_element.send_keys [:control, "m"]
|
||||
end
|
||||
|
||||
When(/^I go to another random page$/) do
|
||||
@@ -60,7 +60,7 @@ end
|
||||
|
||||
Then(/^in it there must be an element with Malayalam text$/) do
|
||||
# 'input_method_enabled' alone only returns []
|
||||
on(IMEPage).input_method_enabled_element.text.should == 'ഇൻസ്ക്രിപ്റ്റ് 2'
|
||||
on(IMEPage).input_method_enabled_element.text.should == "ഇൻസ്ക്രിപ്റ്റ് 2"
|
||||
end
|
||||
|
||||
Given(/^I visit a random page with (.+) skin and (.+) as the interface language$/) do |skin, language|
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
When(/^I set English font to System$/) do
|
||||
on(PanelPage).select_font_for_content = 'System font'
|
||||
on(PanelPage).select_font_for_content = "System font"
|
||||
end
|
||||
|
||||
And(/^I set English font to OpenDyslexic$/) do
|
||||
on(PanelPage).select_font_for_content = 'OpenDyslexic'
|
||||
on(PanelPage).select_font_for_content = "OpenDyslexic"
|
||||
end
|
||||
|
||||
Then(/^the selected content font must be OpenDyslexic$/) do
|
||||
on(PanelPage).select_font_for_content.should == 'OpenDyslexic'
|
||||
on(PanelPage).select_font_for_content.should == "OpenDyslexic"
|
||||
end
|
||||
|
||||
And(/^I select a language different than English for display language$/) do
|
||||
@@ -20,5 +20,5 @@ end
|
||||
|
||||
Then(/^I should see the text in the language panel in (.+?)$/) do |language|
|
||||
code = on(PanelPage).language_to_code(language)
|
||||
on(PanelPage).uls_display_settings_element.attribute('lang').should == code
|
||||
on(PanelPage).uls_display_settings_element.attribute("lang").should == code
|
||||
end
|
||||
|
||||
@@ -65,7 +65,7 @@ When(/^I use the panel to change my (?:interface|input) language to "(.*?)"$/) d
|
||||
end
|
||||
|
||||
Then(/^the panel is in English/) do
|
||||
on(PanelPage).panel_language_element.text.should == 'Language'
|
||||
on(PanelPage).panel_language_element.text.should == "Language"
|
||||
end
|
||||
|
||||
When(/^I switch to "Input" panel of language settings/) do
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
Then(/^the selected interface font must be (.*?)$/) do |font|
|
||||
step 'I open the Universal Language Selector'
|
||||
step 'I open Display panel of language settings'
|
||||
step 'I open Fonts panel of language settings'
|
||||
step "I open the Universal Language Selector"
|
||||
step "I open Display panel of language settings"
|
||||
step "I open Fonts panel of language settings"
|
||||
on(PanelPage).selected_interface_font.should == font
|
||||
end
|
||||
|
||||
Then(/^the selected input method for Malayalam is ml-inscript2$/) do
|
||||
step 'I click on an input box'
|
||||
step 'I should see the input method indicator'
|
||||
step 'in it there must be an element with Malayalam text'
|
||||
step "I click on an input box"
|
||||
step "I should see the input method indicator"
|
||||
step "in it there must be an element with Malayalam text"
|
||||
end
|
||||
|
||||
When(/^I select the ml-inscript2 input method in the panel$/) do
|
||||
|
||||
@@ -15,13 +15,13 @@ When(/^I start editing a page$/) do
|
||||
end
|
||||
|
||||
When(/^I select (.*?) font for the content language$/) do |font|
|
||||
step 'I open the Universal Language Selector'
|
||||
step 'I open Display panel of language settings'
|
||||
step 'I open Fonts panel of language settings'
|
||||
step "I open the Universal Language Selector"
|
||||
step "I open Display panel of language settings"
|
||||
step "I open Fonts panel of language settings"
|
||||
pending("Bug 56885") do
|
||||
step "I select #{font} font for the content language for the live preview"
|
||||
end
|
||||
step 'I apply the changes'
|
||||
step "I apply the changes"
|
||||
end
|
||||
|
||||
Then(/^I should see the edit area text being displayed using "(.*?)" font$/) do |font|
|
||||
|
||||
Reference in New Issue
Block a user