From ae4417e60de1dd62a6fdf8afa571e5bcbef334db Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Thu, 5 Feb 2015 12:13:15 +0200 Subject: [PATCH] [BrowserTest] Click the editable area with .when_present The editable area sometimes didn't appear, so a .when_present call is added to check that it's on the screen. Bug: T88663 Change-Id: I0c5e29a9d7f9d0a22ca8392df9f7a5b857f20d7d --- .../tests/browser/features/step_definitions/shared_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/tests/browser/features/step_definitions/shared_steps.rb b/modules/ve-mw/tests/browser/features/step_definitions/shared_steps.rb index 7b403895ab..5c18e84e6e 100644 --- a/modules/ve-mw/tests/browser/features/step_definitions/shared_steps.rb +++ b/modules/ve-mw/tests/browser/features/step_definitions/shared_steps.rb @@ -4,7 +4,7 @@ Given(/^I am on the (.+) page$/) do |article| end Given(/^I click in the editable part$/) do - on(VisualEditorPage).content_element.send_keys('') + on(VisualEditorPage).content_element.when_present.send_keys('') end Given(/^I go to the browser specific edit page page$/) do