fix(i18n): preserve inherited-name labels as untranslated data
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user