summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-06 13:01:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-06 13:01:07 +0000
commit472e953f5e33a84cec1761066bc11e666575f44b (patch)
tree1a79548902730add14e1e4796984854941d89f8c /test
parent99914e08885fbc7bde26a606106c56baffb91606 (diff)
downloadredmine-472e953f5e33a84cec1761066bc11e666575f44b.tar.gz
redmine-472e953f5e33a84cec1761066bc11e666575f44b.zip
add my page calendar functional test
git-svn-id: http://svn.redmine.org/redmine/trunk@20280 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/my_controller_test.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index 0dc21a77e..f62b01a4d 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -414,6 +414,33 @@ class MyControllerTest < Redmine::ControllerTest
end
end
+ def test_page_with_calendar
+ travel_to issues(:issues_002).start_date
+
+ preferences = User.find(2).pref
+ preferences[:my_page_layout] = {'top' => ['calendar']}
+ preferences.save!
+
+ get :page
+ assert_response :success
+
+ assert_select 'form[data-cm-url=?]', '/issues/context_menu'
+
+ 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_update_account
put(
:account,