From 8f38dd399772ca478cba1a8a3b645e05ad18e20a Mon Sep 17 00:00:00 2001 From: Malik Glossop Date: Mon, 19 Jan 2026 14:42:51 +0100 Subject: [PATCH] Merge pull request #30848 from overleaf/mg-fix-context-text [web] fix test selectors for editor context menu test GitOrigin-RevId: 2d07c9d0416543ab1d9498c69a13809a801708fd --- .../components/codemirror-editor-context-menu.spec.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/test/frontend/features/source-editor/components/codemirror-editor-context-menu.spec.tsx b/services/web/test/frontend/features/source-editor/components/codemirror-editor-context-menu.spec.tsx index 3f1d98c425..a183eb0126 100644 --- a/services/web/test/frontend/features/source-editor/components/codemirror-editor-context-menu.spec.tsx +++ b/services/web/test/frontend/features/source-editor/components/codemirror-editor-context-menu.spec.tsx @@ -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') }) })