Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-02 23:20:17 +0300
committerMike Greiling <mike@pixelcog.com>2017-01-02 23:24:30 +0300
commit637dafde1dabfeb83a384fe48b845b2032b8a23a (patch)
tree2a4bffc3112d143aab8a1792de1e2db32f5e3197 /spec/features/issues_spec.rb
parent3212d47c68c4608e7140b16a30f89e4d26267c46 (diff)
add rspec feature test
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r--spec/features/issues_spec.rb6
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