Fixed Style/StringLiterals RuboCop offense
Bug: 117989 Change-Id: I82086ebd56ace9f85c521ef53b67e5e4bae9d607
This commit is contained in:
@@ -7,7 +7,7 @@ Then(/^I open Input side panel of language settings$/) do
|
||||
end
|
||||
|
||||
Then(/^the Interlanguage links should use Autonym font$/) do
|
||||
on(InterlanguagePage).interlang_link_element.style("font-family").should == "'Autonym',sans-serif"
|
||||
on(InterlanguagePage).interlang_link_element.style('font-family').should == "'Autonym',sans-serif"
|
||||
end
|
||||
|
||||
Then(/^elements that are not Interlanguage links should not use Autonym font$/) do
|
||||
|
||||
@@ -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 the cog icon by Languages in the sidebar$/) do
|
||||
@@ -61,7 +61,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
|
||||
@@ -86,19 +86,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
|
||||
|
||||
@@ -19,7 +19,7 @@ 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
|
||||
|
||||
When(/^I click the button with the ellipsis$/) do
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: utf-8
|
||||
|
||||
Given(/^I am on a wiki in Kotava language$/) do
|
||||
step "I am at the main page"
|
||||
step 'I am at the main page'
|
||||
# Fake a Kotava Wiki
|
||||
browser.execute_script( "mw.config.set( 'wgContentLanguage', 'avk' )" )
|
||||
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 reload the page$/) do
|
||||
@@ -62,9 +62,9 @@ Then(/^in it there must be an element with Malayalam text$/) do
|
||||
# 'input_method_enabled' alone only returns []
|
||||
on(IMEPage) do |page|
|
||||
page.wait_until do
|
||||
page.input_method_enabled_element.text != ""
|
||||
page.input_method_enabled_element.text != ''
|
||||
end
|
||||
page.input_method_enabled_element.text.should == "ഇൻസ്ക്രിപ്റ്റ് 2"
|
||||
page.input_method_enabled_element.text.should == 'ഇൻസ്ക്രിപ്റ്റ് 2'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
When(/^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
|
||||
|
||||
Given(/^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
|
||||
|
||||
@@ -73,7 +73,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
|
||||
@@ -81,7 +81,7 @@ When(/^I switch to Input panel of language settings$/) do
|
||||
end
|
||||
|
||||
Then(/^the language list of ULS should use Autonym font$/) do
|
||||
on(PanelPage).uls_language_name_item("en").style("font-family").should match /Autonym'?, ?sans-serif/
|
||||
on(PanelPage).uls_language_name_item('en').style('font-family').should match /Autonym'?, ?sans-serif/
|
||||
end
|
||||
|
||||
Then(/^I should see (.*) as the selected input language$/) do |language|
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -11,13 +11,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'
|
||||
step "I select #{font} font for the content language for the live preview"
|
||||
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|
|
||||
on(EditPage).editarea_element.style("font-family").should match(/^#{font}/)
|
||||
on(EditPage).editarea_element.style('font-family').should match(/^#{font}/)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user