From: Toshi MARUYAMA Date: Thu, 5 Nov 2020 13:43:02 +0000 (+0000) Subject: add calendar assertion to CalendarsControllerTest#test_cross_project_calendar X-Git-Tag: 4.2.0~549 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f3b52a57759a4c2a7558e8045f9540033dcab54d;p=redmine.git add calendar assertion to CalendarsControllerTest#test_cross_project_calendar git-svn-id: http://svn.redmine.org/redmine/trunk@20268 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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