summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-05-12 05:47:01 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-05-12 05:47:01 +0000
commit88d033f7f666385263a256b15b78374c81a68bd7 (patch)
tree10b7c5e5501194fef3553b8cade7af24a3db8dfd /test
parenta9840f3c1f640d06d204d18ba8a394e58198d74b (diff)
downloadredmine-88d033f7f666385263a256b15b78374c81a68bd7.tar.gz
redmine-88d033f7f666385263a256b15b78374c81a68bd7.zip
Merged r21569 to 5.0-stable (#36909).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21571 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/system/inline_autocomplete_test.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb
index 9a7d8f787..26a89b85d 100644
--- a/test/system/inline_autocomplete_test.rb
+++ b/test/system/inline_autocomplete_test.rb
@@ -164,4 +164,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