mirror of
https://github.com/redmine/redmine.git
synced 2026-01-29 02:40:00 +01:00
Fix a test failure in the Gantt chart context menu caused by unintended button clicks (#43397).
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@24118 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -84,17 +84,15 @@ class GanttsTest < ApplicationSystemTestCase
|
||||
assert_selector '#context-menu'
|
||||
assert_selector '#context-menu a.icon-edit'
|
||||
|
||||
find('body').click
|
||||
assert_no_selector('#context-menu')
|
||||
# Click outside the context menu to close it
|
||||
issue1_subject_row.click
|
||||
assert_no_selector '#context-menu'
|
||||
|
||||
# Context menu for issue task bar
|
||||
issue1_task_bar.right_click
|
||||
|
||||
assert_selector '#context-menu'
|
||||
assert_selector '#context-menu a.icon-edit'
|
||||
|
||||
find('body').click
|
||||
assert_no_selector('#context-menu')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user