add accept_confirm around "remove" button
This commit is contained in:
parent
91c0eeb65a
commit
9985406a91
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ describe 'Project variables', :js do
|
|||
|
||||
it 'deletes variable' do
|
||||
page.within('.variables-table') do
|
||||
click_on 'Remove'
|
||||
accept_confirm { click_on 'Remove' }
|
||||
end
|
||||
|
||||
expect(page).not_to have_selector('variables-table')
|
||||
|
|
Loading…
Reference in a new issue