From f97d2572b6a5e7709b4412aa70dbf10c9b45a159 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 15 Jun 2020 17:59:13 +0000 Subject: [PATCH] use "right_click" instead of "trigger('contextmenu')" in IssuesSystemTest git-svn-id: http://svn.redmine.org/redmine/trunk@19821 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/system/issues_test.rb | 4 ++-- 1 file 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' -- 2.39.5