]> source.dussan.org Git - redmine.git/commitdiff
Removed delay.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 21:11:48 +0000 (21:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 21:11:48 +0000 (21:11 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11347 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 0ea92bfc41803d950e93bd91daa2910f3cbd58ed..27de63a96b1c3856d65cfb212302b8fa0baa0381 100644 (file)
@@ -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