Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-25 00:18:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-25 00:18:05 +0300
commit3d911c6c1f34df47036f1d7e0838e4d5876ee923 (patch)
tree492dfc9e4a3d3ea6d4749f35a78abafe634889f6 /qa
parent0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/settings/mirroring_repositories.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/page/project/settings/mirroring_repositories.rb b/qa/qa/page/project/settings/mirroring_repositories.rb
index 61ee3e4f03c..4efe5212c14 100644
--- a/qa/qa/page/project/settings/mirroring_repositories.rb
+++ b/qa/qa/page/project/settings/mirroring_repositories.rb
@@ -120,7 +120,8 @@ module QA
all_elements(:mirror_repository_url_content, 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
- URI.parse(url.text).path == target_url.path
+ # We also must remove any badges from the url (e.g. All Branches)
+ URI.parse(url.text.split("\n").first).path == target_url.path
end
end
end