]> source.dussan.org Git - redmine.git/commitdiff
prevent assert_difference failure of test_watch_issue_via_context_menu at UI IssuesTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 13:45:09 +0000 (13:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 13:45:09 +0000 (13:45 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11808 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 587230088586cdd9b987131f0b05f02b33734cfa..3464030e795b2faa66ef17091a06449c5dab87b2 100644 (file)
@@ -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