mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
test: ErrorMessage components tests (#13358)
* Add tests for ErrorAlert * Add BasicErrorAlert tests * Add DatabaseErrorMessage tests * Add useRedux property * Finalize DatabaseErrorMessage tests * Add ErrorMessageWithStackTrace tests * Move getErrorMessageComponentRegistry test to dedicated directory * Clean up getErrorMessageComponentRegistry * Add IssueCode tests * Add tests for ParameterErrorMessage * Add tests for TimeoutErrorMessage * Fix linting issue
This commit is contained in:
@@ -55,7 +55,7 @@ export default function BasicErrorAlert({
|
||||
title,
|
||||
}: BasicErrorAlertProps) {
|
||||
return (
|
||||
<StyledContainer level={level}>
|
||||
<StyledContainer level={level} role="alert">
|
||||
<Icon
|
||||
name={level === 'error' ? 'error-solid' : 'warning-solid'}
|
||||
color={supersetTheme.colors[level].base}
|
||||
|
||||
Reference in New Issue
Block a user