소스 검색

Add data-testid

- Add data-testid for page comment button and open comment editor button
Mudana-Grune 3 년 전
부모
커밋
448a29a405
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/app/src/components/PageComment/CommentEditor.tsx
  2. 1 0
      packages/app/src/components/PageSideContents.tsx

+ 1 - 0
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -230,6 +230,7 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
             type="button"
             className="btn btn-lg btn-link"
             onClick={() => setIsReadyToUse(true)}
+            data-testid="openCommentEditorButton"
           >
             <i className="icon-bubble"></i> Add Comment
           </button>

+ 1 - 0
packages/app/src/components/PageSideContents.tsx

@@ -60,6 +60,7 @@ export const PageSideContents = (props: PageSideContentsProps): JSX.Element => {
             <button
               type="button"
               className="btn btn-block btn-outline-secondary grw-btn-page-accessories rounded-pill d-flex justify-content-between align-items-center"
+              data-testid="openCommentEditorButton"
             >
               <i className="icon-fw icon-bubbles grw-page-accessories-control-icon"></i>
               <span>Comments</span>