ryoji-s 2 лет назад
Родитель
Сommit
93827b502f

+ 1 - 1
apps/app/src/components/PageComment.tsx

@@ -191,7 +191,7 @@ export const PageComment: FC<PageCommentProps> = memo((props: PageCommentProps):
                       <NotAvailableForGuest>
                       <NotAvailableForGuest>
                         <NotAvailableForReadOnlyUser>
                         <NotAvailableForReadOnlyUser>
                           <Button
                           <Button
-                            data-testid="comemnt-reply-button"
+                            data-testid="comment-reply-button"
                             outline
                             outline
                             color="secondary"
                             color="secondary"
                             size="sm"
                             size="sm"

+ 1 - 1
apps/app/src/components/PageComment/CommentEditor.tsx

@@ -279,7 +279,7 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
     );
     );
     const submitButton = (
     const submitButton = (
       <Button
       <Button
-        data-testid="commet-submit-button"
+        data-testid="comment-submit-button"
         outline
         outline
         color="primary"
         color="primary"
         className="btn btn-outline-primary rounded-pill"
         className="btn btn-outline-primary rounded-pill"

+ 3 - 3
apps/app/test/cypress/e2e/20-basic-features/20-basic-features--comments.cy.ts

@@ -45,7 +45,7 @@ context('Comment', () => {
     });
     });
 
 
     cy.get('.CodeMirror').type(commetText);
     cy.get('.CodeMirror').type(commetText);
-    cy.getByTestid("commet-submit-button").eq(0).click();
+    cy.getByTestid("comment-submit-button").eq(0).click();
 
 
     // Check update comment count
     // Check update comment count
     commentCount += 1
     commentCount += 1
@@ -61,13 +61,13 @@ context('Comment', () => {
     // Open reply comment editor
     // Open reply comment editor
     cy.waitUntil(() => {
     cy.waitUntil(() => {
       // do
       // do
-      cy.getByTestid('comemnt-reply-button').eq(0).click();
+      cy.getByTestid('comment-reply-button').eq(0).click();
       // wait until
       // wait until
       return cy.get('.comment-write').then($elem => $elem.is(':visible'));
       return cy.get('.comment-write').then($elem => $elem.is(':visible'));
     });
     });
 
 
     cy.get('.CodeMirror').type(commetText);
     cy.get('.CodeMirror').type(commetText);
-    cy.getByTestid("commet-submit-button").eq(0).click();
+    cy.getByTestid("comment-submit-button").eq(0).click();
 
 
     // Check update comment count
     // Check update comment count
     commentCount += 1
     commentCount += 1