Przeglądaj źródła

fix: add data-testid attribute to access token checkbox

Shun Miyazawa 8 miesięcy temu
rodzic
commit
d00cb8935e

+ 1 - 0
apps/app/src/client/components/Me/AccessTokenScopeList.tsx

@@ -68,6 +68,7 @@ export const AccessTokenScopeList: React.FC<AccessTokenScopeListProps> = ({
           <div key={scopeKey} className={`row my-1 ${moduleClass}`}>
           <div key={scopeKey} className={`row my-1 ${moduleClass}`}>
             <div className="col-md-5 indentation">
             <div className="col-md-5 indentation">
               <input
               <input
+                data-testid={`grw-accesstoken-checkbox-${scopeValue}`}
                 className={`form-check-input indentation indentation-level-${level}`}
                 className={`form-check-input indentation indentation-level-${level}`}
                 type="checkbox"
                 type="checkbox"
                 id={scopeValue as string}
                 id={scopeValue as string}