Skip to content

Commit

Permalink
Add option to view all resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
janslifka committed Jul 29, 2024
1 parent 0065205 commit a65e1b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cypress/e2e/projects/detail/comments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,20 @@ describe('Comments', () => {
project.expectCommentCount(0)
})

it('view all resolved comments', () => {
project.openCommentsFor('Options Question 1')
project.startNewCommentThread('This is a new thread')
cy.getCy('comments_comment_resolve').click()

cy.get('.item').contains('Comments').click()
cy.get('.comments-overview .form-check-label').should('contain', 'View resolved comments (1)').click()
cy.get('.comments-overview .fa-ul li').should('contain', 'Options Question 1')
cy.get('.comments-overview .fa-ul li .bg-success.rounded-pill').should('contain', '1')
cy.get('.comments-overview .fa-ul li a').click()

cy.get('.CommentThread.CommentThread--Resolved').should('exist')
})

it('websocket', () => {
project.setProjectSharing(project.AnyoneWithLinkEdit)

Expand Down

0 comments on commit a65e1b2

Please sign in to comment.