A test for saving both ime and font preferences

Change-Id: I091f8db781bf7ea0fd8967c568604402a999356d
This commit is contained in:
Amir E. Aharoni
2013-11-21 18:09:45 +05:30
parent d1647a9fa0
commit cad5ec8dca
4 changed files with 26 additions and 1 deletions

View File

@@ -4,3 +4,13 @@ Then(/^the selected interface font must be (.*?)$/) do |font|
step 'I open Fonts panel of language settings'
on(PanelPage).font_for_interface.should == font
end
Then(/^the selected input method for Malayalam is ml-inscript2$/) do
@browser.execute_script(
"return $.parseJSON( mw.user.options.values['uls-preferences'] ).ime.imes.ml"
).should == 'ml-inscript2'
end
When(/^I select the ml-inscript2 input method in the panel$/) do
on(PanelPage).ml_inscript2_radio_element.click
end