Use existing steps instead of execute_script

Change-Id: Ifb54a9162ac8b4b9c68aea1508081999ea7e7f6c
This commit is contained in:
Niklas Laxström
2013-11-22 12:30:00 +02:00
parent cad5ec8dca
commit 0f0198ded8

View File

@@ -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