diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-05 13:43:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-05 13:43:02 +0000 |
commit | f3b52a57759a4c2a7558e8045f9540033dcab54d (patch) | |
tree | 0ea6b3398486528333dc4712de175980182faca8 /test/functional | |
parent | 4394198751448dfddd21614bfb167a952cbbf58f (diff) | |
download | redmine-f3b52a57759a4c2a7558e8045f9540033dcab54d.tar.gz redmine-f3b52a57759a4c2a7558e8045f9540033dcab54d.zip |
add calendar assertion to CalendarsControllerTest#test_cross_project_calendar
git-svn-id: http://svn.redmine.org/redmine/trunk@20268 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/calendars_controller_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index 5e68e3556..13eda6742 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -95,8 +95,23 @@ class CalendarsControllerTest < Redmine::ControllerTest end def test_cross_project_calendar + travel_to issues(:issues_002).start_date get :show assert_response :success + + assert_select 'table.cal' do + assert_select 'tr' do + assert_select 'td' do + assert_select( + 'div.issue.hascontextmenu.tooltip.starting', + :text => /eCookbook.*Add ingredients categories/m + ) do + assert_select 'a.issue[href=?]', '/issues/2', :text => 'Feature request #2' + assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '2' + end + end + end + end end def test_week_number_calculation |