From: Jean-Philippe Lang Date: Sat, 10 Jan 2015 10:24:19 +0000 (+0000) Subject: Time dependend failures in UI tests (#18789). X-Git-Tag: 3.0.0~151 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50ab0728a8fdc08ccc94a4a07e1c8c46ddff3ca9;p=redmine.git Time dependend failures in UI tests (#18789). Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@13861 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index be9a52f38..f45f0990c 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -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