Skip to content

Commit a65e1b2

Browse files
committed
Add option to view all resolved comments
1 parent 0065205 commit a65e1b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cypress/e2e/projects/detail/comments.spec.js

+14
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,20 @@ describe('Comments', () => {
261261
project.expectCommentCount(0)
262262
})
263263

264+
it('view all resolved comments', () => {
265+
project.openCommentsFor('Options Question 1')
266+
project.startNewCommentThread('This is a new thread')
267+
cy.getCy('comments_comment_resolve').click()
268+
269+
cy.get('.item').contains('Comments').click()
270+
cy.get('.comments-overview .form-check-label').should('contain', 'View resolved comments (1)').click()
271+
cy.get('.comments-overview .fa-ul li').should('contain', 'Options Question 1')
272+
cy.get('.comments-overview .fa-ul li .bg-success.rounded-pill').should('contain', '1')
273+
cy.get('.comments-overview .fa-ul li a').click()
274+
275+
cy.get('.CommentThread.CommentThread--Resolved').should('exist')
276+
})
277+
264278
it('websocket', () => {
265279
project.setProjectSharing(project.AnyoneWithLinkEdit)
266280

0 commit comments

Comments
 (0)