diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-02 14:20:17 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-02 14:24:30 -0600 |
commit | 637dafde1dabfeb83a384fe48b845b2032b8a23a (patch) | |
tree | 2a4bffc3112d143aab8a1792de1e2db32f5e3197 /spec | |
parent | 3212d47c68c4608e7140b16a30f89e4d26267c46 (diff) | |
download | gitlab-ce-637dafde1dabfeb83a384fe48b845b2032b8a23a.tar.gz |
add rspec feature test
Diffstat (limited to 'spec')
-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 b071fe480e6..39de8775c8a 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -619,14 +619,16 @@ describe 'Issues', feature: true do end it 'adds due date to issue' do + date = Date.today.at_beginning_of_month + 2.days + page.within '.due_date' do click_link 'Edit' page.within '.ui-datepicker-calendar' do - first('.ui-state-default').click + click_link date.day end - expect(page).to have_no_content 'None' + expect(find('.value').text).to have_content date.strftime('%b %-d, %Y') end end |