Convert enzyme to rtl: UserInfo (#9846)

* converts tests from Enzyme to Rtl
* increases test coverage
This commit is contained in:
alunturner 2023-01-11 10:46:35 +00:00 committed by GitHub
parent a691e634b0
commit 880a86c8b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 960 additions and 144 deletions

View file

@ -69,7 +69,7 @@ const BaseCard: React.FC<IProps> = forwardRef<HTMLDivElement, IProps>(
if (onClose) {
closeButton = (
<AccessibleButton
data-test-id="base-card-close-button"
data-testid="base-card-close-button"
className="mx_BaseCard_close"
onClick={onClose}
title={closeLabel || _t("Close")}