Commit 55fe57eb authored by Alfredo Sumaran's avatar Alfredo Sumaran

Wait for ajax after clicking on a date

parent cf3c6a01
...@@ -628,6 +628,8 @@ describe 'Issues', feature: true do ...@@ -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 ...@@ -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'
......
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