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
|
// Navigate to approvals page
|
||||||
await page.goto("/landlord/approvals");
|
await page.goto("/landlord/approvals");
|
||||||
|
|
||||||
// Submit approval form
|
// Submit approval via API
|
||||||
const approveForm = page.locator("form").filter({ hasText: "approve" })
|
|
||||||
.first();
|
|
||||||
|
|
||||||
const approveResponse = await page.request.post("/api/lease/approve", {
|
const approveResponse = await page.request.post("/api/lease/approve", {
|
||||||
headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") },
|
headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") },
|
||||||
data: {
|
data: {
|
||||||
@ -203,9 +200,7 @@ test("landlord can reject a lease with reason", async ({ page }: { page: Page })
|
|||||||
// Navigate to approvals page
|
// Navigate to approvals page
|
||||||
await page.goto("/landlord/approvals");
|
await page.goto("/landlord/approvals");
|
||||||
|
|
||||||
// Submit rejection form with reason
|
// Submit rejection via API
|
||||||
const rejectForm = page.locator("form").filter({ hasText: "reject" }).first();
|
|
||||||
|
|
||||||
const rejectionReason = "Insufficient income verification";
|
const rejectionReason = "Insufficient income verification";
|
||||||
const rejectResponse = await page.request.post("/api/lease/reject", {
|
const rejectResponse = await page.request.post("/api/lease/reject", {
|
||||||
headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") },
|
headers: { "Content-Type": "application/json", ...e2eHeaders("landlord") },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user