mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test(api): section-prefix tool URLs across integration, docker, and e2e api specs
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user