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

Refactor clusters feature spec unused variable

parent bc874a6f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -122,12 +122,11 @@ 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 do
page.find('.js-toggle-cluster-list').click
wait_for_requests
end.to change { cluster.enabled }
 
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