Warning panel uses darkmode properly

Updates related tests

Signed-off-by: Nicolas Torres <nicolast@backbase.com>
This commit is contained in:
Nicolas Torres
2021-07-27 11:19:30 +02:00
parent c23f526a8e
commit 5948fd8fce
4 changed files with 100 additions and 57 deletions
@@ -100,7 +100,7 @@ describe('<GroupsExplorerContent />', () => {
const catalogError = new Error('Network timeout');
catalogApi.getEntities.mockRejectedValueOnce(catalogError);
const { getByText } = await renderInTestApp(
const { getAllByText } = await renderInTestApp(
<Wrapper>
<GroupsExplorerContent />
</Wrapper>,
@@ -108,7 +108,7 @@ describe('<GroupsExplorerContent />', () => {
);
await waitFor(() =>
expect(getByText(/Warning: Network timeout/)).toBeInTheDocument(),
expect(getAllByText(/Error: Network timeout/).length).not.toBe(0),
);
});
});