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

This commit is contained in:
Robert Speicher 2017-04-28 17:45:47 -05:00
parent c3c465ace0
commit 6c94483890

View file

@ -8,7 +8,7 @@ feature 'Projected Branches', feature: true, js: true do
before { login_as(user) } before { login_as(user) }
def set_protected_branch_name(branch_name) def set_protected_branch_name(branch_name)
find(".js-protected-branch-select").click find(".js-protected-branch-select").trigger('click')
find(".dropdown-input-field").set(branch_name) find(".dropdown-input-field").set(branch_name)
click_on("Create wildcard #{branch_name}") click_on("Create wildcard #{branch_name}")
end end