Use ouiaId instead of data-cy id in RevertButton

This commit is contained in:
Marliana Lara
2020-11-04 10:57:43 -05:00
parent d57fee7b63
commit 30f5fbb07a

View File

@@ -45,7 +45,7 @@ function RevertButton({ i18n, id, defaultValue, isDisabled = false }) {
<ButtonWrapper>
<Button
aria-label={isRevertable ? i18n._(t`Revert`) : i18n._(t`Undo`)}
data-cy={`${id}-revert`}
ouiaId={`${id}-revert`}
isInline
isSmall
onClick={handleConfirm}