summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/protected_branches.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/settings/protected_branches.rb')
-rw-r--r--qa/qa/page/project/settings/protected_branches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/project/settings/protected_branches.rb b/qa/qa/page/project/settings/protected_branches.rb
index 7315bfb76a5..6616921f34c 100644
--- a/qa/qa/page/project/settings/protected_branches.rb
+++ b/qa/qa/page/project/settings/protected_branches.rb
@@ -58,7 +58,7 @@ module QA
allowed[:roles] = Resource::ProtectedBranch::Roles::NO_ONE unless allowed.key?(:roles)
within_element(:"allowed_to_#{action}_dropdown") do
- click_on allowed[:roles]
+ click_on allowed[:roles][:description]
allowed[:users].each { |user| click_on user.username } if allowed.key?(:users)
allowed[:groups].each { |group| click_on group.name } if allowed.key?(:groups)
end