mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
remove "sleep" from IssuesSystemTest#test_update_journal_notes_with_preview
git-svn-id: http://svn.redmine.org/redmine/trunk@19840 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -351,6 +351,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
|||||||
log_user('admin', 'admin')
|
log_user('admin', 'admin')
|
||||||
|
|
||||||
visit '/issues/1'
|
visit '/issues/1'
|
||||||
|
assert page.first('#journal-2-notes').has_content?('Some notes with Redmine links')
|
||||||
# Click on the edit button
|
# Click on the edit button
|
||||||
page.first('#change-2 a.icon-edit').click
|
page.first('#change-2 a.icon-edit').click
|
||||||
# Check that the textarea is displayed
|
# Check that the textarea is displayed
|
||||||
@@ -365,7 +366,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
|||||||
# Save
|
# Save
|
||||||
click_on 'Save'
|
click_on 'Save'
|
||||||
|
|
||||||
sleep 0.2
|
assert page.first('#journal-2-notes').has_content?('Updated notes')
|
||||||
assert_equal 'Updated notes', Journal.find(2).notes
|
assert_equal 'Updated notes', Journal.find(2).notes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user