From d84da4828f6c4db4ab9104fd00f3e2e5f1f0e5d1 Mon Sep 17 00:00:00 2001 From: jakobmadp~ Date: Thu, 26 Sep 2024 15:43:24 +0200 Subject: [PATCH] fix test --- base/api/testHelperRolle.page.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/api/testHelperRolle.page.ts b/base/api/testHelperRolle.page.ts index 23e0e20..3225110 100644 --- a/base/api/testHelperRolle.page.ts +++ b/base/api/testHelperRolle.page.ts @@ -18,9 +18,11 @@ export async function createRolle(page: Page, rollenArt: string, organisationId: } export async function addSPToRolle(page: Page, rolleId: string, idSP: string): Promise { - const response = await page.request.post(FRONTEND_URL + `api/rolle/${rolleId}/serviceProviders`, { + const response = await page.request.put(FRONTEND_URL + `api/rolle/${rolleId}/serviceProviders`, { data: { - "serviceProviderId": idSP + "serviceProviderIds": [ + idSP + ] } }); expect(response.status()).toBe(201);