Merge pull request #30848 from overleaf/mg-fix-context-text

[web] fix test selectors for editor context menu test

GitOrigin-RevId: 2d07c9d0416543ab1d9498c69a13809a801708fd
This commit is contained in:
Malik Glossop
2026-01-19 14:42:51 +01:00
committed by Copybot
parent 4be9ecbe14
commit 8f38dd3997
@@ -836,7 +836,7 @@ describe('editor context menu', { scrollBehavior: false }, function () {
cy.get('.review-tooltip-menu').should('exist')
cy.get('.cm-line').eq(5).rightclick()
cy.get('.editor-context-menu').should('be.visible')
cy.findByRole('menu').should('be.visible')
cy.get('.review-tooltip-menu').should('not.exist')
})
@@ -895,7 +895,7 @@ describe('editor context menu', { scrollBehavior: false }, function () {
cy.get('.ol-cm-spelling-context-menu-tooltip').should('be.visible')
cy.get('.cm-line').eq(5).rightclick()
cy.get('.editor-context-menu').should('be.visible')
cy.findByRole('menu').should('be.visible')
cy.get('.ol-cm-spelling-context-menu-tooltip').should('not.exist')
})
@@ -923,7 +923,7 @@ describe('editor context menu', { scrollBehavior: false }, function () {
cy.get('.cm-line').eq(5).rightclick()
cy.get('.ol-cm-math-tooltip').should('not.exist')
cy.get('.editor-context-menu').should('be.visible')
cy.findByRole('menu').should('be.visible')
})
})