summaryrefslogtreecommitdiff
path: root/spec/features/projects/clusters_spec.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-12-02 21:54:40 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-12-02 21:54:40 +0100
commitbc874a6fa1290ab655c9532a17c249b6a1842c5c (patch)
tree6b49ed9a82da5a3e6bbf6efb6015dba2ad973014 /spec/features/projects/clusters_spec.rb
parent2bc3a4dc346c8dd9600951e661f34292b7819cce (diff)
downloadgitlab-ce-bc874a6fa1290ab655c9532a17c249b6a1842c5c.tar.gz
Add check for cluster change after toggle
Diffstat (limited to 'spec/features/projects/clusters_spec.rb')
-rw-r--r--spec/features/projects/clusters_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb
index 0a1b004da71..6acfca3deaf 100644
--- a/spec/features/projects/clusters_spec.rb
+++ b/spec/features/projects/clusters_spec.rb
@@ -122,10 +122,12 @@ feature 'Clusters', :js do
context 'with sucessfull request' do
it 'user sees updated cluster' do
+ cluster_enabled = cluster.enabled
page.find('.js-toggle-cluster-list').click
wait_for_requests
+ expect(cluster.enabled).to eq(!cluster.enabled)
expect(page).not_to have_selector('.is-checked')
end
end