Commit 66de4776 authored by Stan Hu's avatar Stan Hu

Another change from .click -> .trigger('click') to make spec pass

parent 6c944838
...@@ -9,7 +9,7 @@ RSpec.shared_examples "protected branches > access control > CE" do ...@@ -9,7 +9,7 @@ RSpec.shared_examples "protected branches > access control > CE" do
allowed_to_push_button = find(".js-allowed-to-push") allowed_to_push_button = find(".js-allowed-to-push")
unless allowed_to_push_button.text == access_type_name unless allowed_to_push_button.text == access_type_name
allowed_to_push_button.click allowed_to_push_button.trigger('click')
within(".dropdown.open .dropdown-menu") { click_on access_type_name } within(".dropdown.open .dropdown-menu") { click_on access_type_name }
end end
end end
......
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