diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-06-15 17:59:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-06-15 17:59:13 +0000 |
commit | f97d2572b6a5e7709b4412aa70dbf10c9b45a159 (patch) | |
tree | 920256ba502d984cb834a508f7695d1bd115973a /test/system | |
parent | 6416bb5f5150f3b3077ae39e088f6b9fdf63f43a (diff) | |
download | redmine-f97d2572b6a5e7709b4412aa70dbf10c9b45a159.tar.gz redmine-f97d2572b6a5e7709b4412aa70dbf10c9b45a159.zip |
use "right_click" instead of "trigger('contextmenu')" in IssuesSystemTest
git-svn-id: http://svn.redmine.org/redmine/trunk@19821 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/issues_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 8352a792f..613aedaee 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -273,7 +273,7 @@ class IssuesSystemTest < ApplicationSystemTestCase visit '/issues' assert page.has_css?('tr#issue-1') find('tr#issue-1 td.updated_on').click - page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" + find('tr#issue-1 td.updated_on').right_click assert_difference 'Watcher.count' do within('#context-menu') do click_link 'Watch' @@ -292,7 +292,7 @@ class IssuesSystemTest < ApplicationSystemTestCase assert page.has_css?('tr#issue-4') find('tr#issue-1 input[type=checkbox]').click find('tr#issue-4 input[type=checkbox]').click - page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" + find('tr#issue-1 td.updated_on').right_click assert_difference 'Watcher.count', 2 do within('#context-menu') do click_link 'Watch' |