Commit 99f06bc8 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix hiding of quick action prompt in specs

parent 74511b04
...@@ -25,12 +25,10 @@ module Spec ...@@ -25,12 +25,10 @@ module Spec
page.within('.js-main-target-form') do page.within('.js-main-target-form') do
filled_text = fill_in('note[note]', with: text) filled_text = fill_in('note[note]', with: text)
begin # Wait for quick action prompt to load and then dismiss it with ESC
# Dismiss quick action prompt if it appears # because it may block the Preview button
filled_text.parent.send_keys(:escape) wait_for_requests
rescue Selenium::WebDriver::Error::ElementNotInteractableError filled_text.send_keys(:escape)
# It's fine if we can't escape when there's no prompt.
end
click_on('Preview') click_on('Preview')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment