Wait for ajax after clicking on a date

This commit is contained in:
Alfredo Sumaran 2017-01-05 17:40:42 -05:00
parent cf3c6a015f
commit 55fe57ebe6

View file

@ -628,6 +628,8 @@ describe 'Issues', feature: true do
click_link date.day click_link date.day
end end
wait_for_ajax
expect(find('.value').text).to have_content date.strftime('%b %-d, %Y') expect(find('.value').text).to have_content date.strftime('%b %-d, %Y')
end end
end end
@ -640,6 +642,8 @@ describe 'Issues', feature: true do
first('.ui-state-default').click first('.ui-state-default').click
end end
wait_for_ajax
expect(page).to have_no_content 'No due date' expect(page).to have_no_content 'No due date'
click_link 'remove due date' click_link 'remove due date'