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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
ae3b06ab
Commit
ae3b06ab
authored
Aug 18, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing specs for expandable environment folders
parent
e2d6427c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
app/serializers/environment_entity.rb
app/serializers/environment_entity.rb
+1
-1
spec/features/projects/environments/environments_spec.rb
spec/features/projects/environments/environments_spec.rb
+26
-0
No files found.
app/serializers/environment_entity.rb
View file @
ae3b06ab
...
...
@@ -27,7 +27,7 @@ class EnvironmentEntity < Grape::Entity
end
expose
:folder_path
do
|
environment
|
# folder_project_environments_path(environment.project, environment
)
folder_project_environments_path
(
environment
.
project
,
environment
.
environment_type
||
environment
.
name
)
end
expose
:created_at
,
:updated_at
...
...
spec/features/projects/environments/environments_spec.rb
View file @
ae3b06ab
...
...
@@ -269,6 +269,32 @@ feature 'Environments page', :js do
end
end
describe
'environments folders'
do
before
do
create
(
:environment
,
project:
project
,
name:
'staging/review-1'
,
state: :available
)
create
(
:environment
,
project:
project
,
name:
'staging/review-2'
,
state: :available
)
end
scenario
'users unfurls an environment folder'
do
visit_environments
(
project
)
expect
(
page
).
not_to
have_content
'review-1'
expect
(
page
).
not_to
have_content
'review-2'
expect
(
page
).
to
have_content
'staging 2'
within
(
'.folder-row'
)
do
find
(
'.folder-name'
,
text:
'staging'
).
click
end
expect
(
page
).
to
have_content
'review-1'
expect
(
page
).
to
have_content
'review-2'
end
end
def
have_terminal_button
have_link
(
nil
,
href:
terminal_project_environment_path
(
project
,
environment
))
end
...
...
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