Removed delay.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11347 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-10 21:11:48 +00:00
parent 7c22c30791
commit 0df1b9b1a4
1 changed files with 10 additions and 11 deletions

View 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