diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-09 13:45:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-09 13:45:09 +0000 |
commit | 6d4e43f3fb22407fb19a1a6cfaaf5711c151c604 (patch) | |
tree | 1755dea1acb9285c3ec81b44ad895c356af46066 /test/ui | |
parent | aaa37be223261d0ddc736fec2686237256926344 (diff) | |
download | redmine-6d4e43f3fb22407fb19a1a6cfaaf5711c151c604.tar.gz redmine-6d4e43f3fb22407fb19a1a6cfaaf5711c151c604.zip |
prevent assert_difference failure of test_watch_issue_via_context_menu at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11808 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r-- | test/ui/issues_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 587230088..3464030e7 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -193,12 +193,14 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base def test_watch_issue_via_context_menu log_user('jsmith', 'jsmith') 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');" assert_difference 'Watcher.count' do within('#context-menu') do click_link 'Watch' end + assert page.has_css?('tr#issue-1') end assert Issue.find(1).watched_by?(User.find_by_login('jsmith')) end |