Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmadp committed Sep 26, 2024
1 parent 5e33401 commit d84da48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/api/testHelperRolle.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ export async function createRolle(page: Page, rollenArt: string, organisationId:
}

export async function addSPToRolle(page: Page, rolleId: string, idSP: string): Promise<void> {
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);
Expand Down

0 comments on commit d84da48

Please sign in to comment.