diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-21 15:53:35 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-25 11:21:06 +0300 |
commit | 4497ca87c488806e5df313a23f187242716727e3 (patch) | |
tree | 4135a49ba99f741b901ff15d98cc8bbc629ad506 /spec/features/projects/compare_spec.rb | |
parent | 7c7fe22c27820b941af51bdef84c3832dda0683e (diff) |
Fix transient error clicking dropdown items in compare_spec.rb
Diffstat (limited to 'spec/features/projects/compare_spec.rb')
-rw-r--r-- | spec/features/projects/compare_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/projects/compare_spec.rb b/spec/features/projects/compare_spec.rb index 294a63a5c6d..a8e00d434e8 100644 --- a/spec/features/projects/compare_spec.rb +++ b/spec/features/projects/compare_spec.rb @@ -52,8 +52,10 @@ describe "Compare", js: true do def select_using_dropdown(dropdown_type, selection) dropdown = find(".js-compare-#{dropdown_type}-dropdown") dropdown.find(".compare-dropdown-toggle").click + dropdown.find('.dropdown-menu') dropdown.fill_in("Filter by Git revision", with: selection) wait_for_requests - dropdown.find_all("a[data-ref=\"#{selection}\"]", visible: true).last.click + dropdown.find("a[data-ref=\"#{selection}\"]", match: :first) + dropdown.all("a[data-ref=\"#{selection}\"]").last.click end end |