import { expect } from "@playwright/test";
import { apiRequest } from "./api.js";
async function createDictionaryFixture(request, token, input) {
  const response = await apiRequest(request, "POST", "/api/dictionaries", {
    token,
    data: { key: input.key, name: input.name }
  });
  expect(response.ok(), `Failed to create dictionary fixture: ${response.status()}`).toBeTruthy();
  const body = await response.json();
  expect(typeof body.id === "string" && body.id.length > 0).toBeTruthy();
  return body.id;
}
export {
  createDictionaryFixture
};
//# sourceMappingURL=dictionariesFixtures.js.map
