Removes first comment body from notes tests

Improves notes unit tests by replacing checking with first comment's body with checking with default / user-specified descriptions. Also, removes test_author unit test, adds setting note's author when checking notification's success and sets first comment type to "opened" in tests with tooltips which require first comment to be "opened".
This commit is contained in:
Nenad Vujicic 2025-03-04 16:12:14 +01:00 committed by Tom Hughes
parent 047e972b2d
commit cc6bfb2c7c
6 changed files with 31 additions and 21 deletions

View file

@ -338,7 +338,7 @@ module Api
second_user = create(:user)
third_user = create(:user)
note_with_comments_by_users = create(:note) do |note|
note_with_comments_by_users = create(:note, :author => first_user) do |note|
create(:note_comment, :note => note, :author => first_user)
create(:note_comment, :note => note, :author => second_user)
end