Skip to content
Snippets Groups Projects
Verified Commit bc874a6f authored by Matija Čupić's avatar Matija Čupić
Browse files

Add check for cluster change after toggle

parent 2bc3a4dc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment