diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-11-03 11:02:57 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-11-03 11:02:57 -0500 |
commit | 3e1168a14c60eb0a3859cc21ae4f44015bba687d (patch) | |
tree | dd01bb2ae79ad0914494d47481e33019b3e32061 /spec/features | |
parent | 11c21e953fe1d8aa108c7558d715300e3221a308 (diff) | |
download | gitlab-ce-3e1168a14c60eb0a3859cc21ae4f44015bba687d.tar.gz |
confirm javascript modal when resetting email tokens
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/profile_spec.rb | 4 |
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 |