summaryrefslogtreecommitdiffstats
path: root/test/system
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-11 07:10:51 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-11 07:10:51 +0000
commit5f028722d5a16f2b1c166fcb4181a7b8c98285ec (patch)
tree0acd9706dc780abf4786df19ddb241d91dc6110e /test/system
parent5013c284314ca8c08eef84b481162a9ffb03849a (diff)
downloadredmine-5f028722d5a16f2b1c166fcb4181a7b8c98285ec.tar.gz
redmine-5f028722d5a16f2b1c166fcb4181a7b8c98285ec.zip
Keep existing @##@ syntax when triggering an issue from the inline autocomplete (#38852).
git-svn-id: https://svn.redmine.org/redmine/trunk@22419 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r--test/system/inline_autocomplete_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb
index 16a8ebdce..25d86fd6b 100644
--- a/test/system/inline_autocomplete_test.rb
+++ b/test/system/inline_autocomplete_test.rb
@@ -43,6 +43,22 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase
assert_equal '#12 ', find('#issue_description').value
end
+ def test_inline_autocomplete_for_issues_with_double_hash_keep_syntax
+ log_user('admin', 'admin')
+ visit 'projects/ecookbook/issues/new'
+
+ fill_in 'Description', :with => '##Closed'
+
+ within('.tribute-container') do
+ assert page.has_text? 'Bug #12: Closed issue on a locked version'
+ assert page.has_text? 'Bug #11: Closed issue on a closed version'
+
+ first('li').click
+ end
+
+ assert_equal '##12 ', find('#issue_description').value
+ end
+
def test_inline_autocomplete_filters_autocomplete_items
log_user('jsmith', 'jsmith')
visit 'issues/new'