integratedhub/tests/e2e/multi-property.spec.ts
open-swe-dev-andrinoid[bot] c773372c30 Apply patch [skip ci]
2026-01-21 14:44:06 +00:00

19 lines
683 B
TypeScript

import { expect, Page, test } from "@playwright/test";
import { applyDeterministicPage, useE2EUser } from "./helpers.ts";
test("landlord sees multi-property portfolio overview", async ({ page }: { page: Page }) => {
await applyDeterministicPage(page);
await useE2EUser(page, "landlord");
await page.goto("/landlord/portfolio");
await expect(
page.getByRole("heading", { name: /multi-property portfolio/i }),
).toBeVisible();
await expect(page.getByText("Skyline Lofts")).toBeVisible();
await expect(page.getByText("Maple Row")).toBeVisible();
await expect(page.getByText("Assigned")).toBeVisible();
await expect(page.getByText("Vacant")).toBeVisible();
});