From 2461d5722087a67a058943085365975c3cf93591 Mon Sep 17 00:00:00 2001 From: Kartik Mistry Date: Mon, 30 Sep 2013 21:39:08 +0530 Subject: [PATCH] Fix for IME menu integration tests Make sure to click only when Input Method indicator is available. Change-Id: Ieff61d74a8ea5b8bcb7aafdc94865dee4927dc97 --- tests/browser/features/step_definitions/ime_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/browser/features/step_definitions/ime_steps.rb b/tests/browser/features/step_definitions/ime_steps.rb index 725c9f74..384487f0 100644 --- a/tests/browser/features/step_definitions/ime_steps.rb +++ b/tests/browser/features/step_definitions/ime_steps.rb @@ -16,7 +16,7 @@ When(/^I click on an input box$/) do end When(/^I click on the input method indicator$/) do - on(RandomPage).input_method_element.click + on(RandomPage).input_method_element.when_present.click end When(/^I open the input method menu$/) do @@ -28,7 +28,7 @@ When(/^I open the input method menu$/) do end Then(/^I should see the input method indicator$/) do - on(RandomPage).input_method_element.should be_visible + on(RandomPage).input_method_element.when_present.should be_visible end Then(/^I should see input methods for (.+)/) do |language|