Commit 4e84ec8a authored by Felipe Artur's avatar Felipe Artur

Fix 'reset-email' link spec

parent 0aaf22de
...@@ -382,7 +382,9 @@ describe 'Issues', feature: true do ...@@ -382,7 +382,9 @@ describe 'Issues', feature: true do
it 'changes incoming email address token', js: true do it 'changes incoming email address token', js: true do
find('.issue-email-modal-btn').click find('.issue-email-modal-btn').click
previous_token = find('input#issue_email').value 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) expect(page).to have_no_field('issue_email', with: previous_token)
new_token = project1.new_issue_address(@user.reload) new_token = project1.new_issue_address(@user.reload)
...@@ -636,7 +638,7 @@ describe 'Issues', feature: true do ...@@ -636,7 +638,7 @@ describe 'Issues', feature: true do
it 'removes due date from issue' do it 'removes due date from issue' do
date = Date.today.at_beginning_of_month + 2.days date = Date.today.at_beginning_of_month + 2.days
page.within '.due_date' do page.within '.due_date' do
click_link 'Edit' click_link 'Edit'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment