BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d2d49419
Unverified
Commit
d2d49419
authored
Dec 18, 2017
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Match updated clusters/show in feature specs
parent
9812d8c2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
gcp_spec.rb
spec/features/projects/clusters/gcp_spec.rb
+3
-3
user_spec.rb
spec/features/projects/clusters/user_spec.rb
+4
-4
No files found.
spec/features/projects/clusters/gcp_spec.rb
View file @
d2d49419
...
...
@@ -81,14 +81,14 @@ feature 'Gcp Cluster', :js do
end
it
'user sees a cluster details page'
do
expect
(
page
).
to
have_button
(
'Save'
)
expect
(
page
).
to
have_button
(
'Save
changes
'
)
expect
(
page
.
find
(
:css
,
'.cluster-name'
).
value
).
to
eq
(
cluster
.
name
)
end
context
'when user disables the cluster'
do
before
do
page
.
find
(
:css
,
'.js-toggle-cluster'
).
click
click_button
'Save'
page
.
within
(
'#cluster-integration'
)
{
click_button
'Save changes'
}
end
it
'user sees the successful message'
do
...
...
@@ -99,7 +99,7 @@ feature 'Gcp Cluster', :js do
context
'when user changes cluster parameters'
do
before
do
fill_in
'cluster_platform_kubernetes_attributes_namespace'
,
with:
'my-namespace'
click_button
'Save changes'
page
.
within
(
'#js-cluster-details'
)
{
click_button
'Save changes'
}
end
it
'user sees the successful message'
do
...
...
spec/features/projects/clusters/user_spec.rb
View file @
d2d49419
...
...
@@ -29,7 +29,7 @@ feature 'User Cluster', :js do
end
it
'user sees a cluster details page'
do
expect
(
page
).
to
have_content
(
'
Enable c
luster integration'
)
expect
(
page
).
to
have_content
(
'
C
luster integration'
)
expect
(
page
.
find_field
(
'cluster[name]'
).
value
).
to
eq
(
'dev-cluster'
)
expect
(
page
.
find_field
(
'cluster[platform_kubernetes_attributes][api_url]'
).
value
)
.
to
have_content
(
'http://example.com'
)
...
...
@@ -57,14 +57,14 @@ feature 'User Cluster', :js do
end
it
'user sees a cluster details page'
do
expect
(
page
).
to
have_button
(
'Save'
)
expect
(
page
).
to
have_button
(
'Save
changes
'
)
end
context
'when user disables the cluster'
do
before
do
page
.
find
(
:css
,
'.js-toggle-cluster'
).
click
fill_in
'cluster_name'
,
with:
'dev-cluster'
click_button
'Save'
page
.
within
(
'#cluster-integration'
)
{
click_button
'Save changes'
}
end
it
'user sees the successful message'
do
...
...
@@ -76,7 +76,7 @@ feature 'User Cluster', :js do
before
do
fill_in
'cluster_name'
,
with:
'my-dev-cluster'
fill_in
'cluster_platform_kubernetes_attributes_namespace'
,
with:
'my-namespace'
click_button
'Save changes'
page
.
within
(
'#js-cluster-details'
)
{
click_button
'Save changes'
}
end
it
'user sees the successful message'
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