mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
[browser test] extend timeout waiting for edit surface to appear
Bug 63447 Change-Id: I0be4142817251147400ea34ebdb04bba760f2161
This commit is contained in:
parent
b677d97069
commit
85abbf7b4e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue