diff --git a/client/cypress/integration/frontend/rooms/article-page.spec.js b/client/cypress/integration/frontend/rooms/article-page.spec.js index f0d3398f..f9926d9b 100644 --- a/client/cypress/integration/frontend/rooms/article-page.spec.js +++ b/client/cypress/integration/frontend/rooms/article-page.spec.js @@ -15,10 +15,10 @@ describe('Article page', () => { operations }); - const commentText = 'First!'; + const commentText = 'First! 🖐️'; cy.visit('/article/this-article-has-a-slug'); - cy.getByDataCy('emoji-button').should('have.length', 9); - cy.getByDataCy('add-comment-input').type(commentText); + cy.getByDataCy('comment-textarea').type(commentText); + cy.getByDataCy('emoji-button').should('have.length', 9).first().click(); cy.getByDataCy('submit-comment').should('contain', 'Kommentar teilen').click(); cy.getByDataCy('comment').first().should('contain', commentText); }); diff --git a/client/src/components/rooms/CommentInput.vue b/client/src/components/rooms/CommentInput.vue new file mode 100644 index 00000000..c1d557e7 --- /dev/null +++ b/client/src/components/rooms/CommentInput.vue @@ -0,0 +1,40 @@ +