blob: 34b4374fbe63ab09005a7268afd623315d2c4787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
module QA
module Page
module Admin
module Settings
class RepositoryStorage < Page::Base
view 'app/views/admin/application_settings/_repository_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_repository_storage do
check 'Create new projects using hashed storage paths'
end
end
def save_settings
within_repository_storage do
click_button 'Save changes'
end
end
def within_repository_storage
page.within('.as-repository-storage') do
yield
end
end
end
end
end
end
end
|