summaryrefslogtreecommitdiffstats
path: root/test/functional/gantts_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2017-11-27 00:34:30 +0000
committerGo MAEDA <maeda@farend.jp>2017-11-27 00:34:30 +0000
commit4a6f9e01d60dffc80ff0a5f2278d5b82e4ed67c6 (patch)
tree538b0720ed6fe590d2ee67159472010257277f5c /test/functional/gantts_controller_test.rb
parent2ecb29bfcbf76e0751e9437d188391afb65ee06d (diff)
downloadredmine-4a6f9e01d60dffc80ff0a5f2278d5b82e4ed67c6.tar.gz
redmine-4a6f9e01d60dffc80ff0a5f2278d5b82e4ed67c6.zip
Add tests for context menu in gantt (#10485).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17037 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/gantts_controller_test.rb')
-rw-r--r--test/functional/gantts_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index 063312b76..dd397d0e4 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -47,6 +47,11 @@ class GanttsControllerTest < Redmine::ControllerTest
end
end
+ # Assert context menu on issues subject and gantt bar
+ assert_select 'div[class=?]', 'issue-subject hascontextmenu'
+ assert_select 'div[class=?]', 'tooltip hascontextmenu'
+ assert_select "form[data-cm-url=?]", '/issues/context_menu'
+
# Issue with start and due dates
i = Issue.find(1)
assert_not_nil i.due_date