summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-11-03 11:02:57 -0500
committerMike Greiling <mike@pixelcog.com>2017-11-03 11:02:57 -0500
commit3e1168a14c60eb0a3859cc21ae4f44015bba687d (patch)
treedd01bb2ae79ad0914494d47481e33019b3e32061 /spec/features
parent11c21e953fe1d8aa108c7558d715300e3221a308 (diff)
downloadgitlab-ce-3e1168a14c60eb0a3859cc21ae4f44015bba687d.tar.gz
confirm javascript modal when resetting email tokens
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/profile_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb
index 0166ab8be99..c60883911f7 100644
--- a/spec/features/profile_spec.rb
+++ b/spec/features/profile_spec.rb
@@ -65,7 +65,7 @@ describe 'Profile account page', :js do
within('.rss-token-reset') do
previous_token = find("#rss_token").value
- click_link('reset it')
+ accept_confirm { click_link('reset it') }
expect(find('#rss_token').value).not_to eq(previous_token)
end
@@ -84,7 +84,7 @@ describe 'Profile account page', :js do
within('.incoming-email-token-reset') do
previous_token = find('#incoming_email_token').value
- click_link('reset it')
+ accept_confirm { click_link('reset it') }
expect(find('#incoming_email_token').value).not_to eq(previous_token)
end