Fix eratic test for POST /api/pleroma/admin/reports/:id/notes
authorIlja <ilja@ilja.space>
Tue, 5 Apr 2022 11:21:09 +0000 (13:21 +0200)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:47:10 +0000 (20:47 +0100)
commite3107fee98bf33dc9a565a00804315c330811f73
treea9a634371e3a773111935baf0e38d1f27ff0486c
parent2df25e6666d0fb65a142b29becee9af0adce998b
Fix eratic test for POST /api/pleroma/admin/reports/:id/notes

It retrieved two ReportNotes and then checked one of them. But the order isn't guaranteed, while the test tested on the content of the first ReportNote.

I made the test on the content more generic
test/pleroma/web/admin_api/controllers/report_controller_test.exs