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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user