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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cf9098f5
Commit
cf9098f5
authored
May 30, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EE clusters_spec for GKE JS dropdowns
parent
598aefe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
ee/spec/features/projects/clusters_spec.rb
ee/spec/features/projects/clusters_spec.rb
+21
-3
No files found.
ee/spec/features/projects/clusters_spec.rb
View file @
cf9098f5
require
'spec_helper'
feature
'EE Clusters'
do
feature
'EE Clusters'
,
:js
do
include
GoogleApi
::
CloudPlatformHelpers
let
(
:project
)
{
create
(
:project
)
}
...
...
@@ -106,9 +106,18 @@ feature 'EE Clusters' do
before
do
click_link
'Add Kubernetes cluster'
click_link
'Create on Google Kubernetes Engine'
fill_in
'cluster_provider_gcp_attributes_gcp_project_id'
,
with:
'gcp-project-123'
sleep
2
# wait for ajax
execute_script
(
'document.querySelector(".js-gcp-project-id-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gcp-zone-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gcp-machine-type-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gke-cluster-creation-submit").removeAttribute("disabled")'
)
fill_in
'cluster_name'
,
with:
'staging-cluster'
fill_in
'cluster_environment_scope'
,
with:
'staging/*'
fill_in
'cluster[provider_gcp_attributes][gcp_project_id]'
,
with:
'gcp-project-123'
fill_in
'cluster[provider_gcp_attributes][zone]'
,
with:
'us-central1-a'
fill_in
'cluster[provider_gcp_attributes][machine_type]'
,
with:
'n1-standard-2'
click_button
'Create Kubernetes cluster'
end
...
...
@@ -136,9 +145,18 @@ feature 'EE Clusters' do
before
do
click_link
'Add Kubernetes cluster'
click_link
'Create on Google Kubernetes Engine'
fill_in
'cluster_provider_gcp_attributes_gcp_project_id'
,
with:
'gcp-project-123'
sleep
2
# wait for ajax
execute_script
(
'document.querySelector(".js-gcp-project-id-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gcp-zone-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gcp-machine-type-dropdown input").setAttribute("type", "text")'
)
execute_script
(
'document.querySelector(".js-gke-cluster-creation-submit").removeAttribute("disabled")'
)
fill_in
'cluster_name'
,
with:
'staging-cluster'
fill_in
'cluster_environment_scope'
,
with:
'*'
fill_in
'cluster[provider_gcp_attributes][gcp_project_id]'
,
with:
'gcp-project-123'
fill_in
'cluster[provider_gcp_attributes][zone]'
,
with:
'us-central1-a'
fill_in
'cluster[provider_gcp_attributes][machine_type]'
,
with:
'n1-standard-2'
click_button
'Create Kubernetes cluster'
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