From 0f0198ded84442f4ff3768e1ecf8cc61d8490ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 22 Nov 2013 12:30:00 +0200 Subject: [PATCH] Use existing steps instead of execute_script Change-Id: Ifb54a9162ac8b4b9c68aea1508081999ea7e7f6c --- .../features/step_definitions/persistent_settings_steps.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/browser/features/step_definitions/persistent_settings_steps.rb b/tests/browser/features/step_definitions/persistent_settings_steps.rb index 104cd833..1d9a5a68 100644 --- a/tests/browser/features/step_definitions/persistent_settings_steps.rb +++ b/tests/browser/features/step_definitions/persistent_settings_steps.rb @@ -6,9 +6,9 @@ Then(/^the selected interface font must be (.*?)$/) do |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' + 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