summaryrefslogtreecommitdiff
path: root/spec/features/projects/clusters_spec.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-11-27 17:18:55 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-11-27 17:28:33 +0000
commit074fcb56bb21f5e30711538df0c3bc6de013e21c (patch)
treeb15e8e316fa86ced04ccb9e7b687c83a5358109a /spec/features/projects/clusters_spec.rb
parent554bf24b2a9e2964286272e690be417901cbd6e0 (diff)
downloadgitlab-ce-074fcb56bb21f5e30711538df0c3bc6de013e21c.tar.gz
Adds JS unit tests
Finishes tabs & table Updates e2e tests
Diffstat (limited to 'spec/features/projects/clusters_spec.rb')
-rw-r--r--spec/features/projects/clusters_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb
index 3df4ef9d8c0..a3fc72ba64c 100644
--- a/spec/features/projects/clusters_spec.rb
+++ b/spec/features/projects/clusters_spec.rb
@@ -24,8 +24,8 @@ feature 'Clusters', :js do
visit project_clusters_path(project)
end
- it 'user sees a new page' do
- expect(page).to have_button('Add cluster')
+ it 'user sees empty state' do
+ expect(page).to have_link('Add cluster')
end
context 'when user opens opens create on gke page' do
@@ -99,7 +99,7 @@ feature 'Clusters', :js do
end
it 'user sees a disabled add cluster button ' do
- expect(page.find(:css, '.js-add-cluster')['disabled']).to eq('true')
+ expect(page).to have_selector('.js-add-cluster.disabled')
end
it 'user sees navigation tabs' do
@@ -244,7 +244,7 @@ feature 'Clusters', :js do
before do
visit project_clusters_path(project)
- click_button 'Add cluster'
+ click_link 'Add cluster'
click_link 'Create on GKE'
end