]> source.dussan.org Git - redmine.git/commitdiff
add calendar assertion to CalendarsControllerTest#test_cross_project_calendar
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:43:02 +0000 (13:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:43:02 +0000 (13:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20268 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/calendars_controller_test.rb

index 5e68e35568cfa0a95b44ef9fe565b90dc4a0f553..13eda6742bef9c2a2d6c843c0c6368a6d81c706d 100644 (file)
@@ -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