@@ -47,7 +47,7 | |||
|
47 | 47 | <% end %> |
|
48 | 48 | |
|
49 | 49 | <% if @issue.safe_attribute? 'start_date' %> |
|
50 | <p> | |
|
50 | <p id="start_date_area"> | |
|
51 | 51 | <%= f.text_field(:start_date, :size => 10, :disabled => !@issue.leaf?, |
|
52 | 52 | :required => @issue.required_attribute?('start_date')) %> |
|
53 | 53 | <%= calendar_for('issue_start_date') if @issue.leaf? %> |
@@ -55,7 +55,7 | |||
|
55 | 55 | <% end %> |
|
56 | 56 | |
|
57 | 57 | <% if @issue.safe_attribute? 'due_date' %> |
|
58 | <p> | |
|
58 | <p id="due_date_area"> | |
|
59 | 59 | <%= f.text_field(:due_date, :size => 10, :disabled => !@issue.leaf?, |
|
60 | 60 | :required => @issue.required_attribute?('due_date')) %> |
|
61 | 61 | <%= calendar_for('issue_due_date') if @issue.leaf? %> |
@@ -132,6 +132,21 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||
|
132 | 132 | assert_equal ['Dave Lopper', 'Some Watcher'], issue.watcher_users.map(&:name).sort |
|
133 | 133 | end |
|
134 | 134 | |
|
135 | def test_create_issue_start_due_date | |
|
136 | with_settings :default_issue_start_date_to_creation_date => 0 do | |
|
137 | log_user('jsmith', 'jsmith') | |
|
138 | visit '/projects/ecookbook/issues/new' | |
|
139 | assert_equal "", page.find('input#issue_start_date').value | |
|
140 | assert_equal "", page.find('input#issue_due_date').value | |
|
141 | page.first('p#start_date_area img').click | |
|
142 | page.first("td.ui-datepicker-days-cell-over a").click | |
|
143 | assert_equal Date.today.to_s, page.find('input#issue_start_date').value | |
|
144 | page.first('p#due_date_area img').click | |
|
145 | page.first("td.ui-datepicker-days-cell-over a").click | |
|
146 | assert_equal Date.today.to_s, page.find('input#issue_due_date').value | |
|
147 | end | |
|
148 | end | |
|
149 | ||
|
135 | 150 | def test_preview_issue_description |
|
136 | 151 | log_user('jsmith', 'jsmith') |
|
137 | 152 | visit '/projects/ecookbook/issues/new' |
General Comments 0
You need to be logged in to leave comments.
Login now