(cherry picked from commit bdb97496ec)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
co-authored by
Leon Sorokin
parent
1559344944
commit
1547e41ce0
@@ -67,7 +67,7 @@ describe('GrafanaRoute', () => {
|
||||
|
||||
setup({ route: { component: PageComponent, path: '' } });
|
||||
|
||||
expect(await screen.findByRole('heading', { name: 'An unexpected error happend' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: 'An unexpected error happened' })).toBeInTheDocument();
|
||||
expect(consoleError).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -43,7 +43,7 @@ export function GrafanaRouteError({ error, errorInfo }: Props) {
|
||||
</div>
|
||||
)}
|
||||
{!isChunkLoadingError && (
|
||||
<ErrorWithStack title={'An unexpected error happend'} error={error} errorInfo={errorInfo} />
|
||||
<ErrorWithStack title={'An unexpected error happened'} error={error} errorInfo={errorInfo} />
|
||||
)}
|
||||
</div>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user