]> source.dussan.org Git - redmine.git/commitdiff
Time dependend failures in UI tests (#18789).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 10:24:19 +0000 (10:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 10:24:19 +0000 (10:24 +0000)
Patch by OndÅ™ej Ezr.

git-svn-id: http://svn.redmine.org/redmine/trunk@13861 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index be9a52f383abd26016345098b80c31822511edb9..f45f0990cca7e995f53942f581ce9309916d91b8 100644 (file)
@@ -237,6 +237,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
       within('#context-menu') do
         click_link 'Watch'
       end
+      # wait for ajax response
+      assert page.has_css?('#context-menu .issue-1-watcher.icon-fav')
       assert page.has_css?('tr#issue-1')
     end
     assert Issue.find(1).watched_by?(User.find_by_login('jsmith'))
@@ -254,6 +256,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
       within('#context-menu') do
         click_link 'Watch'
       end
+      # wait for ajax response
+      assert page.has_css?('#context-menu .issue-bulk-watcher.icon-fav')
       assert page.has_css?('tr#issue-1')
       assert page.has_css?('tr#issue-4')
     end