Add data-testid

This commit is contained in:
Sung-Hyun Kang
2025-12-11 10:25:28 -06:00
parent c2785ace83
commit 70ed0c79e1
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ const ShimmerTree = ({ indentLevels, style = {} }: ShimmerTreeProps) => {
); );
return ( return (
<Stack tokens={{ childrenGap: 8 }} style={{ width: "50%", ...style }} data-test="shimmer-stack"> <Stack tokens={{ childrenGap: 8 }} style={{ width: "50%", ...style }} data-testid="shimmer-stack">
{indentLevels.map((indentLevel: IndentLevel) => renderShimmers(indentLevel))} {indentLevels.map((indentLevel: IndentLevel) => renderShimmers(indentLevel))}
</Stack> </Stack>
); );

View File

@@ -76,7 +76,7 @@ export const convertButton = (btns: CommandButtonComponentProps[], backgroundCol
name: label, name: label,
disabled: btn.disabled, disabled: btn.disabled,
ariaLabel: btn.ariaLabel, ariaLabel: btn.ariaLabel,
"data-test": `CommandBar/Button:${label}`, "data-testid": `CommandBar/Button:${label}`,
buttonStyles: { buttonStyles: {
root: { root: {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,