From 0df1b9b1a4866f833522172042620b93c1ed52c4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Feb 2013 21:11:48 +0000 Subject: [PATCH] Removed delay. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11347 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/ui/issues_test.rb | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 0ea92bfc4..27de63a96 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -71,8 +71,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base within('form#new-watcher-form') do assert page.has_content?('Some One') fill_in 'user_search', :with => 'watch' - sleep(2) # autocomplete delay - assert !page.has_content?('Some One') + assert page.has_no_content?('Some One') check 'Some Watcher' click_button 'Add' end @@ -98,10 +97,10 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base end def test_watch_issue_via_context_menu - log_user('jsmith', 'jsmith') - visit '/issues' - find('tr#issue-1 td.updated_on').click - page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" + log_user('jsmith', 'jsmith') + visit '/issues' + 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' @@ -111,12 +110,12 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base end def test_bulk_watch_issues_via_context_menu + log_user('jsmith', 'jsmith') + visit '/issues' + find('tr#issue-1 input[type=checkbox]').click + find('tr#issue-4 input[type=checkbox]').click + page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" assert_difference 'Watcher.count', 2 do - log_user('jsmith', 'jsmith') - visit '/issues' - find('tr#issue-1 input[type=checkbox]').click - find('tr#issue-4 input[type=checkbox]').click - page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" within('#context-menu') do click_link 'Watch' end -- 2.39.5