summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/settings/repository.rb')
-rw-r--r--qa/qa/page/project/settings/repository.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/qa/qa/page/project/settings/repository.rb b/qa/qa/page/project/settings/repository.rb
index 22362164a1a..1ed5f455a85 100644
--- a/qa/qa/page/project/settings/repository.rb
+++ b/qa/qa/page/project/settings/repository.rb
@@ -6,14 +6,24 @@ module QA
include Common
view 'app/views/projects/deploy_keys/_index.html.haml' do
- element :deploy_keys_section, 'Deploy Keys'
+ element :deploy_keys_settings
+ end
+
+ view 'app/views/projects/protected_branches/shared/_index.html.haml' do
+ element :protected_branches_settings
end
def expand_deploy_keys(&block)
- expand_section('Deploy Keys') do
+ expand_section(:deploy_keys_settings) do
DeployKeys.perform(&block)
end
end
+
+ def expand_protected_branches(&block)
+ expand_section(:protected_branches_settings) do
+ ProtectedBranches.perform(&block)
+ end
+ end
end
end
end