test(api): section-prefix tool URLs across integration, docker, and e2e api specs

This commit is contained in:
SnapOtter
2026-06-20 12:24:50 +08:00
parent fc205c7428
commit f80444791b
213 changed files with 2868 additions and 2846 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ async function waitForProcessingDone(page: Page, timeoutMs = 120_000): Promise<v
test.describe("Error message formatting", () => {
test("tool validation error shows readable message, not [object Object]", async ({ request }) => {
// Send a malformed request directly to trigger a validation error
const res = await request.post("/api/v1/tools/resize", {
const res = await request.post("/api/v1/tools/image/resize", {
multipart: {
file: {
name: "test.jpg",
@@ -421,7 +421,7 @@ test.describe("Container health", () => {
test("error responses have string details, not objects", async ({ request }) => {
const formData = new URLSearchParams();
const res = await request.post("/api/v1/tools/resize", {
const res = await request.post("/api/v1/tools/image/resize", {
headers: { "Content-Type": "application/x-www-form-urlencoded" },
data: formData.toString(),
});