Merge pull request #12939 from overleaf/td-history-more-update-scroll-amount

History migration: More update button scrolls next change to the centre

GitOrigin-RevId: 29d41a046f7110c246a0b9c784dedf6b148ea298
This commit is contained in:
Tim Down
2023-05-05 08:04:53 +00:00
committed by Copybot
parent 27457133e4
commit a0e3379c86
2 changed files with 6 additions and 3 deletions
@@ -203,8 +203,8 @@ End
// Click the "More updates above" button, which should scroll the editor up
// but not quite to the top, and check the new state
cy.get('.previous-highlight-button').first().click()
cy.get('@scroller').invoke('scrollTop').should('not.equal', 0)
cy.get('.previous-highlight-button').should('have.length', 1)
cy.get('@scroller').invoke('scrollTop').should('equal', 0)
cy.get('.previous-highlight-button').should('not.exist')
cy.get('.next-highlight-button').should('have.length', 1)
})