diff options
-rw-r--r-- | qa/qa/factory/resource/branch.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qa/qa/factory/resource/branch.rb b/qa/qa/factory/resource/branch.rb index 2a3e8e81571..20c3f7e6d24 100644 --- a/qa/qa/factory/resource/branch.rb +++ b/qa/qa/factory/resource/branch.rb @@ -84,6 +84,11 @@ module QA # Avoid Selenium::WebDriver::Error::StaleElementReferenceError # without sleeping. I.e. this completes fast on fast machines. page.refresh + + # It is possible for the protected branch row to "disappear" at first + page.wait do + page.has_content?(branch_name) + end end end end |