add rspec feature test

This commit is contained in:
Mike Greiling 2017-01-02 14:20:17 -06:00
parent 3212d47c68
commit 637dafde1d
1 changed files with 4 additions and 2 deletions

View File

@ -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