diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-19 00:27:39 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-19 00:27:39 +0000 |
commit | 160f6cd361cc5fd7fb4398a9a387f4f33a37e180 (patch) | |
tree | a7a564e5e61f64dc3a642d5bca53f07513444993 /test/ui | |
parent | 11b24ab64bb58b423e39ef94eea309db87d45ce8 (diff) | |
download | redmine-160f6cd361cc5fd7fb4398a9a387f4f33a37e180.tar.gz redmine-160f6cd361cc5fd7fb4398a9a387f4f33a37e180.zip |
add test of current issue start and due date datepicker (#14024)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11879 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r-- | test/ui/issues_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 8d5f403db..df25f8b9c 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -132,6 +132,21 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base assert_equal ['Dave Lopper', 'Some Watcher'], issue.watcher_users.map(&:name).sort end + def test_create_issue_start_due_date + with_settings :default_issue_start_date_to_creation_date => 0 do + log_user('jsmith', 'jsmith') + visit '/projects/ecookbook/issues/new' + assert_equal "", page.find('input#issue_start_date').value + assert_equal "", page.find('input#issue_due_date').value + page.first('p#start_date_area img').click + page.first("td.ui-datepicker-days-cell-over a").click + assert_equal Date.today.to_s, page.find('input#issue_start_date').value + page.first('p#due_date_area img').click + page.first("td.ui-datepicker-days-cell-over a").click + assert_equal Date.today.to_s, page.find('input#issue_due_date').value + end + end + def test_preview_issue_description log_user('jsmith', 'jsmith') visit '/projects/ecookbook/issues/new' |