Commit 53dd0485 authored by feld's avatar feld
Browse files

Test the note is returned when fetching a single report

parent 7efc074e
Pipeline #32506 passed with stages
in 10 minutes and 56 seconds
......@@ -37,12 +37,21 @@ test "returns report by its id", %{conn: conn} do
status_ids: []
|> put_req_header("content-type", "application/json")
|> post("/api/pleroma/admin/reports/#{report_id}/notes", %{
content: "this is an admin note"
response =
|> get("/api/pleroma/admin/reports/#{report_id}")
|> json_response_and_validate_schema(:ok)
assert response["id"] == report_id
[notes] = response["notes"]
assert notes["content"] == "this is an admin note"
test "returns 404 when report id is invalid", %{conn: conn} do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment