Migrated Tag test to react testing library

This commit is contained in:
Alejandro Celaya
2022-07-08 10:48:29 +02:00
parent 498668929f
commit 91ee4a32cd
2 changed files with 44 additions and 26 deletions

View File

@@ -19,6 +19,6 @@ export const Tag: FC<TagProps> = ({ text, children, clearable, className = '', c
onClick={onClick}
>
{children ?? text}
{clearable && <span className="close tag__close-selected-tag" onClick={onClose}>&times;</span>}
{clearable && <span aria-label="Close" className="close tag__close-selected-tag" onClick={onClose}>&times;</span>}
</span>
);