Commit 510903c0 authored by kushalpandya's avatar kushalpandya

Update selector it use JS-only class

parent f0fb9d0a
......@@ -18,7 +18,7 @@
gl.ProtectedBranchCreate = class {
constructor() {
this.$wrap = this.$form = $('#new_protected_branch');
this.$wrap = this.$form = $('.js-new-protected-branch');
this.buildDropdowns();
this.$branchInput = this.$wrap.find('input[name="protected_branch[name]"]');
this.bindEvents();
......
module ProtectedBranchHelpers
def set_allowed_to(operation, option = 'Masters', form: '#new_protected_branch')
def set_allowed_to(operation, option = 'Masters', form: '.js-new-protected-branch')
within form do
find(".js-allowed-to-#{operation}").trigger('click')
wait_for_requests
......
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