From ef6143a2b5247904b57c4c60fb718f47c6550f20 Mon Sep 17 00:00:00 2001 From: Anastasia Khasanova Date: Wed, 20 Mar 2024 11:52:27 +0100 Subject: [PATCH] feat(User): added qa attribute for name and description nodes (#1429) --- src/components/User/User.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/User/User.tsx b/src/components/User/User.tsx index fd1939fbdf..8cdf3101db 100644 --- a/src/components/User/User.tsx +++ b/src/components/User/User.tsx @@ -9,6 +9,11 @@ import './User.scss'; const b = block('user'); +export const UserQa = { + NAME: 'user-name', + DESCRIPTION: 'user-description', +}; + export const User = React.forwardRef( ( { @@ -42,9 +47,15 @@ export const User = React.forwardRef( ) : null} {name || showDescription ? (
- {name ? {name} : null} + {name ? ( + + {name} + + ) : null} {showDescription ? ( - {description} + + {description} + ) : null}
) : null}