fix(web): search 503 vs error (#34); terms/authorities list error states (#31); authority-tab a11y + dead keys (#32); authority-kind test (#37)

This commit is contained in:
2026-06-04 17:28:01 +02:00
parent 1a91b8a242
commit ff513e1712
10 changed files with 92 additions and 15 deletions
+8
View File
@@ -52,6 +52,14 @@ test("selecting a vocabulary shows its terms and adds one", async () => {
);
});
test("terms endpoint error shows vocab loadError", async () => {
server.use(
http.get("/api/admin/vocabularies/:id/terms", () => new HttpResponse(null, { status: 500 })),
);
renderApp(tree(), { route: "/vocabularies/v-material" });
expect(await screen.findByText(/could not load/i)).toBeInTheDocument();
});
test("add term without EN label shows required alert and does not POST", async () => {
let posted = false;
server.use(