Remove replaceSpacesInTestId and normalize test id in createAttributesFroTesting

This commit is contained in:
Sebastian Sdorra
2020-08-12 10:54:16 +02:00
parent 1dfb688f21
commit 6fbb3b9d53
6 changed files with 99 additions and 20 deletions

View File

@@ -28,8 +28,7 @@ import {
AvatarImage,
AvatarWrapper,
MailLink,
createAttributesForTesting,
replaceSpacesInTestId
createAttributesForTesting
} from "@scm-manager/ui-components";
type Props = WithTranslation & {
@@ -53,11 +52,11 @@ class ProfileInfo extends React.Component<Props> {
<tbody>
<tr>
<th>{t("profile.username")}</th>
<td {...createAttributesForTesting(replaceSpacesInTestId(me.name))}>{me.name}</td>
<td {...createAttributesForTesting(me.name)}>{me.name}</td>
</tr>
<tr>
<th>{t("profile.displayName")}</th>
<td {...createAttributesForTesting(replaceSpacesInTestId(me.displayName))}>{me.displayName}</td>
<td {...createAttributesForTesting(me.displayName)}>{me.displayName}</td>
</tr>
<tr>
<th>{t("profile.mail")}</th>