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
diff options
context:
space:
mode:
authorSanster <cwq1913@163.com>2017-02-24 15:13:42 +0300
committerSanster <cwq1913@163.com>2017-03-24 01:28:21 +0300
commit4d6e377cd9929be7826614dc986deba4ad03438c (patch)
treecdb3ecb5f2c99bac48f1e0bb215c9d1c30e5a7b4 /spec/features/projects/compare_spec.rb
parent6eeba4b18214e054bbdebd66f53586fc09256130 (diff)
fix new MR form erroneously selects tag as source when branch of same name exists #23237
Diffstat (limited to 'spec/features/projects/compare_spec.rb')
-rw-r--r--spec/features/projects/compare_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/projects/compare_spec.rb b/spec/features/projects/compare_spec.rb
index 030043d14aa..b2a3b111c9e 100644
--- a/spec/features/projects/compare_spec.rb
+++ b/spec/features/projects/compare_spec.rb
@@ -53,6 +53,7 @@ describe "Compare", js: true do
dropdown = find(".js-compare-#{dropdown_type}-dropdown")
dropdown.find(".compare-dropdown-toggle").click
dropdown.fill_in("Filter by Git revision", with: selection)
- find_link(selection, visible: true).click
+ wait_for_ajax
+ dropdown.find_all("a[data-ref=\"#{selection}\"]", visible: true).last.click
end
end