Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/protected_branch_helpers.rb')
-rw-r--r--spec/support/protected_branch_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/protected_branch_helpers.rb b/spec/support/protected_branch_helpers.rb
index db5118d6f88..49ede865876 100644
--- a/spec/support/protected_branch_helpers.rb
+++ b/spec/support/protected_branch_helpers.rb
@@ -3,7 +3,7 @@
module ProtectedBranchHelpers
def set_allowed_to(operation, option = 'Maintainers', form: '.js-new-protected-branch')
within(form) do
- within_select(".js-allowed-to-#{operation}") do
+ within_select(".js-allowed-to-#{operation}:not([disabled])") do
Array(option).each { |opt| click_on(opt) }
end
end