diff options
author | Go MAEDA <maeda@farend.jp> | 2025-02-11 03:24:48 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2025-02-11 03:24:48 +0000 |
commit | bc90e0670df930b0a4aa8be1e0d887aac45eea0f (patch) | |
tree | 4f64967a4ae94072d18d05355e08bc87d9c9139f | |
parent | fb5c2395b253f2b55b7bc7774f3fd1bb2c72abf8 (diff) | |
download | redmine-bc90e0670df930b0a4aa8be1e0d887aac45eea0f.tar.gz redmine-bc90e0670df930b0a4aa8be1e0d887aac45eea0f.zip |
Add missing assertions to InlineAutocompleteTest (#42200).
Patch by Katsuya HIDAKA (user:hidakatsuya).
git-svn-id: https://svn.redmine.org/redmine/trunk@23506 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/system/inline_autocomplete_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb index 286ea90a7..9bd5ac25c 100644 --- a/test/system/inline_autocomplete_test.rb +++ b/test/system/inline_autocomplete_test.rb @@ -77,7 +77,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase fill_in 'Description', :with => '#' end - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocomplete_on_issue_edit_notes_should_show_autocomplete @@ -88,7 +88,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase find('#issue_notes').click fill_in 'issue[notes]', :with => '#' - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocomplete_on_issue_custom_field_with_full_text_formatting_should_show_autocomplete @@ -103,7 +103,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase fill_in 'Full width field', :with => '#' - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocomplete_on_wiki_should_show_autocomplete @@ -114,7 +114,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase find('.wiki-edit').click fill_in 'content[text]', :with => '#' - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocomplete_on_news_description_should_show_autocomplete @@ -127,7 +127,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase find('.wiki-edit').click fill_in 'Description', :with => '#' - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocomplete_on_new_message_description_should_show_autocomplete @@ -140,7 +140,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase find('.wiki-edit').click fill_in 'message[content]', :with => '#' - page.has_css?('.tribute-container li', minimum: 1) + assert_selector '.tribute-container li', minimum: 1 end def test_inline_autocompletion_of_wiki_page_links |