diff options
author | Sanster <cwq1913@163.com> | 2017-02-24 15:13:42 +0300 |
---|---|---|
committer | Sanster <cwq1913@163.com> | 2017-03-24 01:28:21 +0300 |
commit | 4d6e377cd9929be7826614dc986deba4ad03438c (patch) | |
tree | cdb3ecb5f2c99bac48f1e0bb215c9d1c30e5a7b4 /spec/features/projects/compare_spec.rb | |
parent | 6eeba4b18214e054bbdebd66f53586fc09256130 (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.rb | 3 |
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 |