diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-02-16 22:36:59 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-02-16 22:36:59 +0300 |
commit | 4e84ec8a9ea47041fe6cffe9373377f72f7d53a9 (patch) | |
tree | 12ae029711900c961a2d1471703c564e64c60825 /spec/features/issues_spec.rb | |
parent | 0aaf22ded4e98f91a8b34539d9afe3ce20003e4d (diff) |
Fix 'reset-email' link spec
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 755162a1eb5..094f645a077 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -382,7 +382,9 @@ describe 'Issues', feature: true do it 'changes incoming email address token', js: true do find('.issue-email-modal-btn').click previous_token = find('input#issue_email').value - find('.incoming-email-token-reset').click + find('.incoming-email-token-reset').trigger('click') + + wait_for_ajax expect(page).to have_no_field('issue_email', with: previous_token) new_token = project1.new_issue_address(@user.reload) @@ -636,7 +638,7 @@ describe 'Issues', feature: true do it 'removes due date from issue' do date = Date.today.at_beginning_of_month + 2.days - + page.within '.due_date' do click_link 'Edit' |