Fix for a Warning Panel. For certain error messages the content of it doesn't fit inside the div container.

Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
This commit is contained in:
Bogdan Nechyporenko
2023-10-04 16:56:31 +02:00
parent 3cc945cbe1
commit 451b72a383
@@ -80,12 +80,10 @@ describe('<WarningPanel />', () => {
<WarningPanel
{...propsErrorMessage}
formatTitle="markdown"
title="Step has been failed. [Help](https://commonmark.org/help)"
title="Step has failed. [Help](https://commonmark.org/help)"
/>,
);
expect(
screen.getByText('Error: Step has been failed.'),
).toBeInTheDocument();
expect(screen.getByText('Error: Step has failed.')).toBeInTheDocument();
expect(screen.getByText('Help')).toHaveAttribute(
'href',