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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user