Use existing steps instead of execute_script
Change-Id: Ifb54a9162ac8b4b9c68aea1508081999ea7e7f6c
This commit is contained in:
@@ -6,9 +6,9 @@ Then(/^the selected interface font must be (.*?)$/) do |font|
|
|||||||
end
|
end
|
||||||
|
|
||||||
Then(/^the selected input method for Malayalam is ml-inscript2$/) do
|
Then(/^the selected input method for Malayalam is ml-inscript2$/) do
|
||||||
@browser.execute_script(
|
step 'I click on an input box'
|
||||||
"return $.parseJSON( mw.user.options.values['uls-preferences'] ).ime.imes.ml"
|
step 'I should see the input method indicator'
|
||||||
).should == 'ml-inscript2'
|
step 'in it there must be an element with Malayalam text'
|
||||||
end
|
end
|
||||||
|
|
||||||
When(/^I select the ml-inscript2 input method in the panel$/) do
|
When(/^I select the ml-inscript2 input method in the panel$/) do
|
||||||
|
|||||||
Reference in New Issue
Block a user