fix(i18n): preserve inherited-name labels as untranslated data

This commit is contained in:
cesnimda
2026-11-02 22:23:26 +01:00
parent 8909e53467
commit 7b132ec4b4
7 changed files with 36 additions and 2 deletions
@@ -78,6 +78,12 @@ const match = {
beforeEach(() => jest.clearAllMocks());
test.each(["constructor", "toString", "__proto__"])("timeline preserves unknown category %s as a label", async category => {
mockedApi.get.mockResolvedValue({ data: { ...timeline, categories: ["stage", category] } } as any);
render(<ApplicationTimeline jobId={7} />);
expect(await screen.findByRole("button", { name: category })).toBeInTheDocument();
});
// ---------- Timeline ----------
test("timeline renders grouped days, milestones and readable summaries", async () => {