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 () {