From 90432cbbe17753182cb2e81e01dd0b3de66e6152 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 12 Nov 2023 11:00:16 +0000 Subject: Merged r22419 from trunk to 5.1-stable (#38852). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22424 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/system/inline_autocomplete_test.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/system') 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' -- cgit v1.2.3