From ab841610bf53e93741a4e016f72c5b2cbe3cc8b8 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 29 Aug 2023 11:45:14 +0100 Subject: [PATCH] [visual] Fix section heading test (#14549) GitOrigin-RevId: 8cf54515d62e538a8cd2b7711435c0d6bed4f016 --- .../components/codemirror-editor-visual-toolbar.spec.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/test/frontend/features/source-editor/components/codemirror-editor-visual-toolbar.spec.tsx b/services/web/test/frontend/features/source-editor/components/codemirror-editor-visual-toolbar.spec.tsx index fb96aed20f..63b8fd97a2 100644 --- a/services/web/test/frontend/features/source-editor/components/codemirror-editor-visual-toolbar.spec.tsx +++ b/services/web/test/frontend/features/source-editor/components/codemirror-editor-visual-toolbar.spec.tsx @@ -62,13 +62,15 @@ describe(' toolbar in Rich Text mode', function () { cy.findByRole('menu').within(() => { cy.findByText('Subsection').click() }) - cy.get('.cm-content').should('have.text', '{hi}') + cy.get('.cm-content').should('have.text', 'hi') + cy.get('.ol-cm-command-subsection').should('have.length', 1) clickToolbarButton('Choose section heading level') cy.findByRole('menu').within(() => { cy.findByText('Normal text').click() }) cy.get('.cm-content').should('have.text', 'hi') + cy.get('.ol-cm-command-subsection').should('have.length', 0) }) it('should toggle Bold and Italic', function () {