[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
This commit is contained in:
Amir E. Aharoni 2015-02-05 12:13:15 +02:00
parent 130edbfe62
commit ae4417e60d

View file

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