Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,15 @@ describe('Comments', () => {
cy.step('Scroll to the bottom and see the next 5 comments')

cy.findByText('Fourth comment').should('exist').scrollIntoView()
cy.findByText('Fifth comment').should('exist').scrollIntoView()

cy.findByLabelText('loading more comments')
.should('exist')
.scrollIntoView()
.then(() => {
resolveMostRecentOperation({ data: commentsNextPageMockData })
})
cy.findByText('Fifth comment').should('exist')

cy.findByLabelText('loading more comments').should('not.exist')
cy.findByText('Sixth comment').should('exist').scrollIntoView()
cy.findByText('Seventh comment').should('exist')
cy.findByText('Eighth comment').should('exist').scrollIntoView()
Expand All @@ -231,7 +232,6 @@ describe('Comments', () => {

cy.step('Scroll to the bottom should not trigger another fetch')
cy.findByText('Tenth comment').scrollIntoView()
cy.findByLabelText('loading more comments').should('not.exist')
})

it('should be able to render all comment`s replies', () => {
Expand Down
Loading