shortcuts: remove unnecessary test
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -77,27 +77,4 @@ describe('ShortcutItem', () => {
|
||||
expect(screen.getByText('MT')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
it('gets the color based on the theme', async () => {
|
||||
const { rerender } = await renderInTestApp(
|
||||
<ShortcutItem api={api} shortcut={shortcut} />,
|
||||
);
|
||||
|
||||
expect(document.querySelector('circle')?.getAttribute('fill')).toEqual(
|
||||
pageTheme.tool.colors[0],
|
||||
);
|
||||
|
||||
const newShortcut: Shortcut = {
|
||||
id: 'id',
|
||||
url: '/catalog',
|
||||
title: 'some title',
|
||||
};
|
||||
rerender(wrapInTestApp(<ShortcutItem api={api} shortcut={newShortcut} />));
|
||||
|
||||
await waitFor(() => {
|
||||
expect(document.querySelector('circle')?.getAttribute('fill')).toEqual(
|
||||
pageTheme.home.colors[0],
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user