From 6a637001d0ea8da56f21a5715bf32dfdddc966dc Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 9 Oct 2025 10:10:32 -0700 Subject: [PATCH] Align down method with server seedId implementation --- libs/playwright-scenes/src/recipes/recipe.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libs/playwright-scenes/src/recipes/recipe.ts b/libs/playwright-scenes/src/recipes/recipe.ts index c2e48fd858a..01f6f431c98 100644 --- a/libs/playwright-scenes/src/recipes/recipe.ts +++ b/libs/playwright-scenes/src/recipes/recipe.ts @@ -29,15 +29,8 @@ export abstract class Recipe { } async down(): Promise { - const response = await fetch(`${webServer.url}/api/delete`, { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - template: this.template, - seedId: this.seedId, - }), + const response = await fetch(`${webServer.url}/api/seed/${this.seedId}`, { + method: "DELETE", }); if (!response.ok) {