summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/mirroring_repositories.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 12:08:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 12:08:34 +0000
commit0820b29dca14bd22c2cee6d9ee2900b64385bfa6 (patch)
tree3637b0c997f5764c7255b830ffe32e53ac7ce078 /qa/qa/page/project/settings/mirroring_repositories.rb
parent778772c8d97adc025c126a941a1bd37bf72419ac (diff)
downloadgitlab-ce-0820b29dca14bd22c2cee6d9ee2900b64385bfa6.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/project/settings/mirroring_repositories.rb')
-rw-r--r--qa/qa/page/project/settings/mirroring_repositories.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/qa/qa/page/project/settings/mirroring_repositories.rb b/qa/qa/page/project/settings/mirroring_repositories.rb
index cae5831f100..517163a22f1 100644
--- a/qa/qa/page/project/settings/mirroring_repositories.rb
+++ b/qa/qa/page/project/settings/mirroring_repositories.rb
@@ -77,9 +77,7 @@ module QA
# The host key detection process is interrupted if we navigate away
# from the page before the fingerprint appears.
- wait(max: 5) do
- find_element(:fingerprints_list).has_text? /.*/
- end
+ find_element(:fingerprints_list, text: /.*/)
end
def mirror_repository
@@ -100,7 +98,7 @@ module QA
sleep 5
refresh
- wait(interval: 1) do
+ wait_until(sleep_interval: 1) do
within_element_by_index(:mirrored_repository_row, row_index) do
last_update = find_element(:mirror_last_update_at_cell, wait: 0)
last_update.has_text?('just now') || last_update.has_text?('seconds')
@@ -117,7 +115,7 @@ module QA
private
def find_repository_row_index(target_url)
- wait(max: 5, reload: false) do
+ wait_until(max_duration: 5, reload: false) do
all_elements(:mirror_repository_url_cell, minimum: 1).index do |url|
# The url might be a sanitized url but the target_url won't be so
# we compare just the paths instead of the full url