2026-02-14 02:20:19 +00:00

16 lines
494 B
TypeScript

import { test } from "@playwright/test";
import {
expectApiAuthRequired,
expectPageRedirectsToLogin,
} from "../helpers/auth-assertions.ts";
test.describe("Income Route Guards", () => {
test("every-income page requires authentication", async ({ request }) => {
await expectPageRedirectsToLogin(request, "/calendar/every-income");
});
test("income API requires authentication", async ({ request }) => {
await expectApiAuthRequired(request, "/api/retrieve/income");
});
});