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
594c3208
Commit
594c3208
authored
Oct 10, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds tests to verify if tabs are rendered
parent
0e1f39d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+15
-0
No files found.
spec/features/environments_spec.rb
View file @
594c3208
...
@@ -18,11 +18,26 @@ feature 'Environments', feature: true do
...
@@ -18,11 +18,26 @@ feature 'Environments', feature: true do
before
do
before
do
visit
namespace_project_environments_path
(
project
.
namespace
,
project
)
visit
namespace_project_environments_path
(
project
.
namespace
,
project
)
end
end
context
'shows two tabs'
do
scenario
'does show Available tab with link'
do
expect
(
page
).
to
have_link
(
'Available'
)
end
scenario
'does show Stopped tab with link'
do
expect
(
page
).
to
have_link
(
'Stopped'
)
end
end
context
'without environments'
do
context
'without environments'
do
scenario
'does show no environments'
do
scenario
'does show no environments'
do
expect
(
page
).
to
have_content
(
'You don\'t have any environments right now.'
)
expect
(
page
).
to
have_content
(
'You don\'t have any environments right now.'
)
end
end
scenario
'does show 0 as counter for environments in both tabs'
do
expect
(
page
.
find
(
'.js-avaibale-environments-count'
).
text
).
to
eq
(
'0'
)
expect
(
page
.
find
(
'.js-stopped-environments-count'
).
text
).
to
eq
(
'0'
)
end
end
end
context
'with environments'
do
context
'with environments'
do
...
...
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