]> source.dussan.org Git - redmine.git/commitdiff
Add a test for #37369.
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 26 Sep 2022 22:39:23 +0000 (22:39 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 26 Sep 2022 22:39:23 +0000 (22:39 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21852 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/system/inline_autocomplete_test.rb

index fd0ac7a22155a3146e1caa3b943673b09f30a1dd..39fbaa2ed6fcbcfad41b579baf937179d198d4e5 100644 (file)
@@ -186,4 +186,19 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase
       assert page.has_text? "Dave Lopper"
     end
   end
+
+  def test_inline_autocomplete_for_users_on_issues_bulk_edit_show_autocomplete
+    log_user('jsmith', 'jsmith')
+    visit '/issues/bulk_edit?ids[]=1&ids[]=2'
+
+    find('#notes').click
+    fill_in 'notes', :with => '@lopper'
+
+    within('.tribute-container') do
+      assert page.has_text? 'Dave Lopper'
+      first('li').click
+    end
+
+    assert_equal '@dlopper ', find('#notes').value
+  end
 end