Apply patch [skip ci]

This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-20 19:56:08 +00:00
parent 39f8152f5e
commit dc4585bc7f

View File

@ -1,7 +1,7 @@
import { expect, test } from "@playwright/test"; import { expect, test, Page } from "@playwright/test";
import { applyDeterministicPage, useE2EUser } from "./helpers.ts"; import { applyDeterministicPage, useE2EUser } from "./helpers.ts";
test("landlord dashboard surfaces portfolio activity", async ({ page }) => { test("landlord dashboard surfaces portfolio activity", async ({ page }: { page: Page }) => {
await applyDeterministicPage(page); await applyDeterministicPage(page);
await useE2EUser(page, "landlord"); await useE2EUser(page, "landlord");
@ -24,7 +24,7 @@ test("landlord dashboard surfaces portfolio activity", async ({ page }) => {
).toBeVisible(); ).toBeVisible();
}); });
test("landlord properties list includes active listings", async ({ page }) => { test("landlord properties list includes active listings", async ({ page }: { page: Page }) => {
await applyDeterministicPage(page); await applyDeterministicPage(page);
await useE2EUser(page, "landlord"); await useE2EUser(page, "landlord");
@ -36,7 +36,7 @@ test("landlord properties list includes active listings", async ({ page }) => {
await expect(page.getByText("456 Maple St")).toBeVisible(); await expect(page.getByText("456 Maple St")).toBeVisible();
}); });
test("landlord can approve an application", async ({ page }) => { test("landlord can approve an application", async ({ page }: { page: Page }) => {
await applyDeterministicPage(page); await applyDeterministicPage(page);
await useE2EUser(page, "landlord"); await useE2EUser(page, "landlord");
@ -61,7 +61,7 @@ test("landlord can approve an application", async ({ page }) => {
await expect(updatedRow).toContainText(/approved/i); await expect(updatedRow).toContainText(/approved/i);
}); });
test("landlord can update maintenance status", async ({ page }) => { test("landlord can update maintenance status", async ({ page }: { page: Page }) => {
await applyDeterministicPage(page); await applyDeterministicPage(page);
await useE2EUser(page, "landlord"); await useE2EUser(page, "landlord");
@ -75,3 +75,4 @@ test("landlord can update maintenance status", async ({ page }) => {
await expect(page).toHaveURL(/\/landlord\/maintenance/); await expect(page).toHaveURL(/\/landlord\/maintenance/);
await expect(statusSelect).toHaveValue("in_progress"); await expect(statusSelect).toHaveValue("in_progress");
}); });