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:
Geido
2021-03-03 02:34:10 +02:00
committed by GitHub
parent 694ae6f90e
commit 7d270bced6
11 changed files with 677 additions and 36 deletions

View File

@@ -103,7 +103,7 @@ export default function ErrorAlert({
const isExpandable = ['explore', 'sqllab'].includes(source);
return (
<ErrorAlertDiv level={level}>
<ErrorAlertDiv level={level} role="alert">
<div className="top-row">
<LeftSideContent>
<Icon