mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-09-26 20:41:45 +00:00
16 lines
511 B
TypeScript
16 lines
511 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test.describe("@web", () => {
|
|
for (const path of ["/", "/about", "/note/does-not-exist"]) {
|
|
test(`serves ${path} with status 200`, async ({ request }) => {
|
|
const response = await request.get(path);
|
|
expect(response.status()).toBe(200);
|
|
});
|
|
}
|
|
|
|
test("api still reports a missing note as 404", async ({ request }) => {
|
|
const response = await request.get("/api/notes/does-not-exist");
|
|
expect(response.status()).toBe(404);
|
|
});
|
|
});
|