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
19a99d08
Commit
19a99d08
authored
Nov 06, 2018
by
Mike Greiling
Committed by
Thong Kuah
Nov 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tests related to removed toggle button
parent
1dba5dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
spec/features/projects/clusters_spec.rb
spec/features/projects/clusters_spec.rb
+0
-31
No files found.
spec/features/projects/clusters_spec.rb
View file @
19a99d08
...
...
@@ -35,37 +35,6 @@ describe 'Clusters', :js do
expect
(
page
).
to
have_selector
(
'.gl-responsive-table-row'
,
count:
2
)
end
context
'inline update of cluster'
do
it
'user can update cluster'
do
expect
(
page
).
to
have_selector
(
'.js-project-feature-toggle'
)
end
context
'with successful request'
do
it
'user sees updated cluster'
do
expect
do
page
.
find
(
'.js-project-feature-toggle'
).
click
wait_for_requests
end
.
to
change
{
cluster
.
reload
.
enabled
}
expect
(
page
).
not_to
have_selector
(
'.is-checked'
)
expect
(
cluster
.
reload
).
not_to
be_enabled
end
end
context
'with failed request'
do
it
'user sees not update cluster and error message'
do
expect_any_instance_of
(
Clusters
::
UpdateService
).
to
receive
(
:execute
).
and_call_original
allow_any_instance_of
(
Clusters
::
Cluster
).
to
receive
(
:valid?
)
{
false
}
page
.
find
(
'.js-project-feature-toggle'
).
click
expect
(
page
).
to
have_content
(
'Something went wrong on our end.'
)
expect
(
page
).
to
have_selector
(
'.is-checked'
)
expect
(
cluster
.
reload
).
to
be_enabled
end
end
end
context
'when user clicks on a cluster'
do
before
do
click_link
cluster
.
name
...
...
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