integratedhub/tests/e2e/multi-property.spec.ts
2026-01-20 09:02:26 -06:00

19 lines
661 B
TypeScript

import { expect, test } from "@playwright/test";
import { applyDeterministicPage, useE2EUser } from "./helpers.ts";
test("landlord sees multi-property portfolio overview", async ({ 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();
});