Commit 19369d71 authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-fix-ee-master' into 'master'

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

See merge request !1760
parents 37ca458f 2582a3a4
......@@ -9,17 +9,17 @@ feature 'Projected Branches', feature: true, js: true do
def set_allowed_to(operation, option = 'Masters', form: '#new_protected_branch')
within form do
find(".js-allowed-to-#{operation}").click
find(".js-allowed-to-#{operation}").trigger('click')
wait_for_ajax
Array(option).each { |opt| click_on(opt) }
find(".js-allowed-to-#{operation}").click # needed to submit form in some cases
find(".js-allowed-to-#{operation}").trigger('click') # needed to submit form in some cases
end
end
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)
click_on("Create wildcard #{branch_name}")
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