diff options
Diffstat (limited to 'qa/qa/page/project/artifact/show.rb')
-rw-r--r-- | qa/qa/page/project/artifact/show.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/qa/page/project/artifact/show.rb b/qa/qa/page/project/artifact/show.rb index 437363d4a98..5e05eec79f0 100644 --- a/qa/qa/page/project/artifact/show.rb +++ b/qa/qa/page/project/artifact/show.rb @@ -9,8 +9,10 @@ module QA element :directory_name_link end - def go_to_directory(name) - click_element(:directory_name_link, directory_name: name) + def go_to_directory(name, retry_attempts = 1) + retry_on_exception(max_attempts: retry_attempts, reload: true, sleep_interval: 10) do + click_element(:directory_name_link, directory_name: name) + end end end end |