diff --git a/e2e/imaging/avatar-endpoint.spec.ts b/e2e/imaging/avatar-endpoint.spec.ts index 99dbc361..085cfd60 100644 --- a/e2e/imaging/avatar-endpoint.spec.ts +++ b/e2e/imaging/avatar-endpoint.spec.ts @@ -67,13 +67,10 @@ test("rejects a malformed figure with 400", async ({ request }) => { expect(response.status()).toBe(400); }); -test("the default /imaging endpoint serves a PNG", async ({ request }) => { - const response = await request.get( - `/imaging?${new URLSearchParams({ figure: FIGURE, img_format: "png" })}`, - ); - expect(response.status()).toBe(200); - expect(response.headers()["content-type"]).toContain("image/png"); -}); +// NB: the sibling `/imaging` CMS route is intentionally fronted to the imager +// container by the edge proxy in production, so it is not asserted here — it +// would only pass when the CMS is reached directly. Its behaviour is covered by +// src/lib/imaging-route.test.ts. test("the badge endpoint serves an image and revalidates", async ({ request,