summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-10-31 21:22:42 -0500
committerMike Greiling <mike@pixelcog.com>2017-10-31 21:23:25 -0500
commit9985406a9137dfed1f2e84546d255889165e11ad (patch)
treee3638a3896e7b7b1c4fd53b9104883d858830428
parent91c0eeb65a177ec419d2f79f3d676851483e9347 (diff)
downloadgitlab-ce-9985406a9137dfed1f2e84546d255889165e11ad.tar.gz
add accept_confirm around "remove" button
-rw-r--r--spec/features/variables_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/variables_spec.rb b/spec/features/variables_spec.rb
index 5d8e818f7bf..c78f7d0d9be 100644
--- a/spec/features/variables_spec.rb
+++ b/spec/features/variables_spec.rb
@@ -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')