diff options
-rw-r--r-- | qa/qa/page/base.rb | 4 | ||||
-rw-r--r-- | qa/qa/runtime/browser.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb index 4e1a55337c9..49b16790337 100644 --- a/qa/qa/page/base.rb +++ b/qa/qa/page/base.rb @@ -13,8 +13,10 @@ module QA def wait(css = '.application', time: 60) Time.now.tap do |start| while Time.now - start < time - break if page.has_css?(css, wait: 5) puts "Waiting for `#{css} on `#{current_url}`" + + break if page.has_css?(css, wait: 5) + refresh end end diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb index e05dd9612df..96b3e144f99 100644 --- a/qa/qa/runtime/browser.rb +++ b/qa/qa/runtime/browser.rb @@ -79,7 +79,7 @@ module QA def perform(&block) visit(@address) - block.call if block_given? + yield if block_given? rescue raise if block.nil? |