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 -1
View File
@@ -1,5 +1,6 @@
import type { APIRequestContext } from "@playwright/test";
import { expect, test } from "@playwright/test";
import { apiToolPath } from "@snapotter/shared";
// ---- Helpers ---------------------------------------------------------------
@@ -87,7 +88,7 @@ async function callTool(
settings: Record<string, unknown> = {},
) {
const headers = await authHeaders(request);
return request.post(`${API}/api/v1/tools/${toolId}`, {
return request.post(`${API}${apiToolPath(toolId)}`, {
headers,
multipart: {
file: {