shortcuts: remove unnecessary test

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-16 12:39:27 +01:00
parent dc9fd0acf9
commit c8d1f915e7
@@ -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],
);
});
});
});