Refactor clusters feature spec unused variable
This commit is contained in:
parent
bc874a6fa1
commit
7691e015d7
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
expect do
|
||||
page.find('.js-toggle-cluster-list').click
|
||||
wait_for_requests
|
||||
end.to change { cluster.enabled }
|
||||
|
||||
wait_for_requests
|
||||
|
||||
expect(cluster.enabled).to eq(!cluster.enabled)
|
||||
expect(page).not_to have_selector('.is-checked')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue