Improves note's unit test with the latest dropping

Improves note's unit test test_read_note_suspended_opener_and_comment by specifying "commented" type to second note comment (by default "opened") to support the latest dropping displaying notes comments.
This commit is contained in:
Nenad Vujicic 2025-02-21 13:06:17 +01:00
parent f8fb850e8c
commit 00c0a943ea

View file

@ -164,7 +164,7 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
def test_read_note_suspended_opener_and_comment def test_read_note_suspended_opener_and_comment
note = create(:note) note = create(:note)
create(:note_comment, :note => note, :author => create(:user, :suspended)) create(:note_comment, :note => note, :author => create(:user, :suspended))
create(:note_comment, :note => note) create(:note_comment, :note => note, :event => "commented")
sidebar_browse_check :note_path, note.id, "notes/show" sidebar_browse_check :note_path, note.id, "notes/show"
assert_select "div.note-comments ul li", :count => 1 assert_select "div.note-comments ul li", :count => 1