From 229096bb33d50872b28847be887f64d75afa37c9 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-andrinoid[bot]" Date: Thu, 29 Jan 2026 19:28:47 +0000 Subject: [PATCH] Apply patch [skip ci] --- tests/e2e/lease-approval.spec.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/e2e/lease-approval.spec.ts b/tests/e2e/lease-approval.spec.ts index d6810e6..21c3fb0 100644 --- a/tests/e2e/lease-approval.spec.ts +++ b/tests/e2e/lease-approval.spec.ts @@ -151,10 +151,7 @@ test("landlord can approve a lease", async ({ page }: { page: Page }) => { // Navigate to approvals page await page.goto("/landlord/approvals"); - // Submit approval form - const approveForm = page.locator("form").filter({ hasText: "approve" }) - .first(); - + // Submit approval via API const approveResponse = await page.request.post("/api/lease/approve", { headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") }, data: { @@ -203,9 +200,7 @@ test("landlord can reject a lease with reason", async ({ page }: { page: Page }) // Navigate to approvals page await page.goto("/landlord/approvals"); - // Submit rejection form with reason - const rejectForm = page.locator("form").filter({ hasText: "reject" }).first(); - + // Submit rejection via API const rejectionReason = "Insufficient income verification"; const rejectResponse = await page.request.post("/api/lease/reject", { headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") },