diff options
Diffstat (limited to 'qa/qa/page/admin/settings/repo_storage.rb')
-rw-r--r-- | qa/qa/page/admin/settings/repo_storage.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/qa/qa/page/admin/settings/repo_storage.rb b/qa/qa/page/admin/settings/repo_storage.rb new file mode 100644 index 00000000000..dc648c77abd --- /dev/null +++ b/qa/qa/page/admin/settings/repo_storage.rb @@ -0,0 +1,33 @@ +module QA + module Page + module Admin + module Settings + class RepoStorage < Page::Base + view 'app/views/admin/application_settings/_repo_storage.html.haml' do + element :submit, "submit 'Save changes'" + element :hashed_storage, + 'Create new projects using hashed storage paths' + end + + def enable_hashed_storage + within_repo_storage do + check 'Create new projects using hashed storage paths' + end + end + + def save_settings + within_repo_storage do + click_button 'Save changes' + end + end + + def within_repo_storage + page.within('.as-repo-storage') do + yield + end + end + end + end + end + end +end |