Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a5afcdc2
Commit
a5afcdc2
authored
Sep 28, 2018
by
Ash McKenzie
Committed by
Douglas Barbosa Alexandre
Sep 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: Fix Hashed Storage QA spec
parent
dd2dab7e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
9 deletions
+33
-9
app/views/admin/application_settings/repository.html.haml
app/views/admin/application_settings/repository.html.haml
+1
-1
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/factory/settings/hashed_storage.rb
qa/qa/factory/settings/hashed_storage.rb
+2
-1
qa/qa/page/admin/settings/main.rb
qa/qa/page/admin/settings/main.rb
+0
-7
qa/qa/page/admin/settings/repository.rb
qa/qa/page/admin/settings/repository.rb
+23
-0
qa/qa/page/menu/side.rb
qa/qa/page/menu/side.rb
+6
-0
No files found.
app/views/admin/application_settings/repository.html.haml
View file @
a5afcdc2
...
...
@@ -13,7 +13,7 @@
.settings-content
=
render
partial:
'repository_mirrors_form'
%section
.settings.as-repository-storage.no-animate
#js-repository-storage-settings
{
class:
(
'expanded'
if
expanded_by_default?
)
}
%section
.
qa-repository-storage.
settings.as-repository-storage.no-animate
#js-repository-storage-settings
{
class:
(
'expanded'
if
expanded_by_default?
)
}
.settings-header
%h4
=
_
(
'Repository storage'
)
...
...
qa/qa.rb
View file @
a5afcdc2
...
...
@@ -238,6 +238,7 @@ module QA
module
Settings
autoload
:RepositoryStorage
,
'qa/page/admin/settings/repository_storage'
autoload
:Main
,
'qa/page/admin/settings/main'
autoload
:Repository
,
'qa/page/admin/settings/repository'
end
end
...
...
qa/qa/factory/settings/hashed_storage.rb
View file @
a5afcdc2
...
...
@@ -8,8 +8,9 @@ module QA
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
Menu
::
Main
.
act
{
go_to_admin_area
}
Page
::
Menu
::
Admin
.
act
{
go_to_settings
}
Page
::
Menu
::
Side
.
act
{
click_repository
}
Page
::
Admin
::
Settings
::
Main
.
perform
do
|
setting
|
Page
::
Admin
::
Settings
::
Repository
.
perform
do
|
setting
|
setting
.
expand_repository_storage
do
|
page
|
page
.
enable_hashed_storage
page
.
save_settings
...
...
qa/qa/page/admin/settings/main.rb
View file @
a5afcdc2
...
...
@@ -6,13 +6,6 @@ module QA
include
QA
::
Page
::
Settings
::
Common
view
'app/views/admin/application_settings/show.html.haml'
do
element
:terms_settings
end
def
expand_repository_storage
(
&
block
)
expand_section
(
:terms_settings
)
do
RepositoryStorage
.
perform
(
&
block
)
end
end
end
end
...
...
qa/qa/page/admin/settings/repository.rb
0 → 100644
View file @
a5afcdc2
# frozen_string_literal: true
module
QA
module
Page
module
Admin
module
Settings
class
Repository
<
Page
::
Base
include
QA
::
Page
::
Settings
::
Common
view
'app/views/admin/application_settings/repository.html.haml'
do
element
:repository_storage
end
def
expand_repository_storage
(
&
block
)
expand_section
(
:repository_storage
)
do
RepositoryStorage
.
perform
(
&
block
)
end
end
end
end
end
end
end
qa/qa/page/menu/side.rb
View file @
a5afcdc2
...
...
@@ -84,6 +84,12 @@ module QA
end
end
def
click_repository
within_sidebar
do
click_link
(
'Repository'
)
end
end
private
def
hover_settings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment