integratedhub/tests/e2e/landlord/properties.spec.ts
2026-02-14 02:20:19 +00:00

13 lines
491 B
TypeScript

import { test } from "@playwright/test";
import { expectPageRedirectsToLogin } from "../helpers/auth-assertions.ts";
test.describe("Landlord Properties Route Guard", () => {
test("properties list requires authentication", async ({ request }) => {
await expectPageRedirectsToLogin(request, "/landlord/properties");
});
test("add property route requires authentication", async ({ request }) => {
await expectPageRedirectsToLogin(request, "/landlord/properties/add");
});
});