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
Tatuya Kamada
gitlab-ce
Commits
0886b0fe
Commit
0886b0fe
authored
Feb 07, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stop action
parent
bc669442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+3
-13
No files found.
spec/features/environments_spec.rb
View file @
0886b0fe
...
@@ -56,10 +56,8 @@ feature 'Environments page', :feature, :js do
...
@@ -56,10 +56,8 @@ feature 'Environments page', :feature, :js do
context
'for available environment'
do
context
'for available environment'
do
given
(
:environment
)
{
create
(
:environment
,
project:
project
,
state: :available
)
}
given
(
:environment
)
{
create
(
:environment
,
project:
project
,
state: :available
)
}
scenario
'does allow to stop environment'
do
scenario
'does not shows stop button'
do
click_link
(
'Stop'
)
expect
(
page
).
not_to
have_selector
(
'.stop-env-link'
)
expect
(
page
).
to
have_content
(
environment
.
name
.
titleize
)
end
end
end
end
...
@@ -67,7 +65,7 @@ feature 'Environments page', :feature, :js do
...
@@ -67,7 +65,7 @@ feature 'Environments page', :feature, :js do
given
(
:environment
)
{
create
(
:environment
,
project:
project
,
state: :stopped
)
}
given
(
:environment
)
{
create
(
:environment
,
project:
project
,
state: :stopped
)
}
scenario
'does not shows stop button'
do
scenario
'does not shows stop button'
do
expect
(
page
).
not_to
have_
link
(
'Stop
'
)
expect
(
page
).
not_to
have_
selector
(
'.stop-env-link
'
)
end
end
end
end
end
end
...
@@ -186,14 +184,6 @@ feature 'Environments page', :feature, :js do
...
@@ -186,14 +184,6 @@ feature 'Environments page', :feature, :js do
expect
(
page
).
not_to
have_terminal_button
expect
(
page
).
not_to
have_terminal_button
end
end
end
end
context
'whitout stop action'
do
scenario
'does allow to stop environment'
do
click_link
(
'Stop'
)
expect
(
page
).
to
have_content
(
environment
.
name
.
capitalize
)
end
end
end
end
end
end
end
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