Apply patch [skip ci]
This commit is contained in:
parent
64b0cf923c
commit
229096bb33
@ -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") },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user