16 lines
494 B
TypeScript
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");
|
|
});
|
|
});
|