[browser test] extend timeout waiting for edit surface to appear

Bug 63447

Change-Id: I0be4142817251147400ea34ebdb04bba760f2161
This commit is contained in:
cmcmahon 2014-04-02 14:36:43 -07:00
parent b677d97069
commit 85abbf7b4e
5 changed files with 6 additions and 6 deletions

View file

@ -6,8 +6,8 @@ end
on(VisualEditorPage) do |page|
#extra space after 'line' below is a workaround for FF issue where VE is sending BACKSPACE before RETURN
#probably caused by https://bugzilla.wikimedia.org/show_bug.cgi?id=56274
page.content_element.when_present.send_keys "This is a new line "
page.content_element.when_present.send_keys :return
page.content_element.when_present(10).send_keys "This is a new line "
page.content_element.when_present(10).send_keys :return
end
end

View file

@ -4,7 +4,7 @@ end
When(/^I send right arrow times (\d+)$/) do |number|
on(VisualEditorPage) do |page|
page.content_element.when_present.fire_event("onfocus")
page.content_element.when_present(10).fire_event("onfocus")
number.to_i.times do
page.content_element.send_keys :arrow_right
page.content_element.fire_event("onblur") #gerrit 86800/86801

View file

@ -19,7 +19,7 @@ When(/^I enter and save a (.+) edit$/) do |count|
end
When(/^I insert the text (.*?)$/) do |input_string|
on(VisualEditorPage).content_element.when_present.send_keys(input_string)
on(VisualEditorPage).content_element.when_present(10).send_keys(input_string)
end
When(/^I click Save page another time$/) do

View file

@ -10,7 +10,7 @@ When(/^I click Edit for VisualEditor$/) do
on(VisualEditorPage) do |page|
page.edit_ve_element.when_present.click
# no longer need to dismiss beta warning here https://gerrit.wikimedia.org/r/#/c/119217/
page.content_element.when_present.fire_event("onfocus")
page.content_element.when_present(10).fire_event("onfocus")
end
end

View file

@ -39,7 +39,7 @@ When(/^I edit the page with (.+)$/) do |input_string|
on(VisualEditorPage) do |page|
page.edit_ve_element.when_present.click
# no longer need to dismiss beta warning here https://gerrit.wikimedia.org/r/#/c/119217/
page.content_element.when_present.fire_event("onfocus")
page.content_element.when_present(10).fire_event("onfocus")
page.content_element.when_present.send_keys(input_string + " #{@random_string} ")
end
end