Commit 0906c603 authored by Mike Greiling's avatar Mike Greiling

fix flaky test within protected_branches_access_control.rb

parent 1fc948ee
...@@ -100,10 +100,8 @@ shared_examples "protected branches > access control > EE" do ...@@ -100,10 +100,8 @@ shared_examples "protected branches > access control > EE" do
find(".dropdown-input-field").set(users.last.name) # Find a user that is not loaded find(".dropdown-input-field").set(users.last.name) # Find a user that is not loaded
wait_for_requests wait_for_requests
expect(page).to have_selector('.dropdown-header', count: 3) %w{Roles Groups Users}.each do |header|
expect(page).to have_selector('.dropdown-header', text: header)
%w{Roles Groups Users}.each_with_index do |header, index|
expect(all('.dropdown-header')[index]).to have_content(header)
end end
click_on users.last.name click_on users.last.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment