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 (
<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))}
</Stack>
);

View File

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