diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-06 01:40:42 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-06 01:40:42 +0300 |
commit | 55fe57ebe6c69355b727108366e558b9ac5fd142 (patch) | |
tree | 052a453b86e0c9e39d503851e7b9c9470919ec46 /spec/features/issues_spec.rb | |
parent | cf3c6a015f9ba644f1cec10319b247ef04114189 (diff) |
Wait for ajax after clicking on a date
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 39de8775c8a..394eb31aff8 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -628,6 +628,8 @@ describe 'Issues', feature: true do click_link date.day end + wait_for_ajax + expect(find('.value').text).to have_content date.strftime('%b %-d, %Y') end end @@ -640,6 +642,8 @@ describe 'Issues', feature: true do first('.ui-state-default').click end + wait_for_ajax + expect(page).to have_no_content 'No due date' click_link 'remove due date' |