diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-11 20:29:14 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-11 20:29:14 +0000 |
commit | 2a60a7bd7940dcde74202163f36becf53df7f9b3 (patch) | |
tree | 2a671416ae446d78676935e4ed6bda88369fcba0 /test/system | |
parent | 1d02d8ec0be539c0387121fdc1634518abf5e99e (diff) | |
download | redmine-2a60a7bd7940dcde74202163f36becf53df7f9b3.tar.gz redmine-2a60a7bd7940dcde74202163f36becf53df7f9b3.zip |
Fix that mentions not working after issue status is changed (#36909).
git-svn-id: https://svn.redmine.org/redmine/trunk@21569 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/inline_autocomplete_test.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb index 514e6b796..0490c6947 100644 --- a/test/system/inline_autocomplete_test.rb +++ b/test/system/inline_autocomplete_test.rb @@ -165,4 +165,26 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase assert page.has_text? "Bug ##{issue.id}: This issue has a <select> element" end end + + def test_inline_autocomplete_for_users_should_work_after_status_change + log_user('jsmith', 'jsmith') + visit '/issues/1/edit' + + find('#issue_notes').click + fill_in 'issue[notes]', :with => '@lopper' + + within('.tribute-container') do + assert page.has_text? "Dave Lopper" + end + + page.find('#issue_status_id').select('Feedback') + + find('#issue_notes').click + fill_in 'issue[notes]', :with => '@lopper' + + within('.tribute-container') do + assert page.has_text? "Dave Lopper" + end + + end end |