mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-10 04:35:24 +00:00
Removes UI tests where the date picker is involved.
git-svn-id: http://svn.redmine.org/redmine/trunk@16770 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e0181ee894
commit
52000cd745
@ -32,7 +32,6 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
|
||||
fill_in 'Subject', :with => 'new test issue'
|
||||
fill_in 'Description', :with => 'new issue'
|
||||
select '0 %', :from => 'Done'
|
||||
fill_in 'Due date', :with => ''
|
||||
fill_in 'Searchable field', :with => 'Value for field 2'
|
||||
# click_button 'Create' would match both 'Create' and 'Create and continue' buttons
|
||||
find('input[name=commit]').click
|
||||
@ -135,52 +134,6 @@ 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_default_due_date_proposed_in_date_picker
|
||||
log_user('jsmith', 'jsmith')
|
||||
visit '/projects/ecookbook/issues/new'
|
||||
|
||||
# Future start date: due date should default to start date
|
||||
fill_in 'Start date', :with => '2027-04-01'
|
||||
fill_in 'Due date', :with => ''
|
||||
page.first('p#due_date_area img').click
|
||||
page.first("td.ui-datepicker-days-cell-over a").click
|
||||
assert_equal '2027-04-01', page.find('input#issue_due_date').value
|
||||
|
||||
# Passed start date: due date should default to today
|
||||
fill_in 'Start date', :with => '2012-04-01'
|
||||
fill_in 'Due date', :with => ''
|
||||
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
|
||||
|
||||
def test_default_start_date_proposed_in_date_picker
|
||||
log_user('jsmith', 'jsmith')
|
||||
visit '/projects/ecookbook/issues/new'
|
||||
|
||||
# Passed due date: start date should default to due date
|
||||
fill_in 'Start date', :with => ''
|
||||
fill_in 'Due date', :with => '2012-04-01'
|
||||
page.first('p#start_date_area img').click
|
||||
page.first("td.ui-datepicker-days-cell-over a").click
|
||||
assert_equal '2012-04-01', page.find('input#issue_start_date').value
|
||||
end
|
||||
|
||||
def test_preview_issue_description
|
||||
log_user('jsmith', 'jsmith')
|
||||
visit '/projects/ecookbook/issues/new'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user