mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[visual] Fix section heading test (#14549)
GitOrigin-RevId: 8cf54515d62e538a8cd2b7711435c0d6bed4f016
This commit is contained in:
parent
28d8c2b135
commit
625714a924
1 changed files with 3 additions and 1 deletions
|
@ -62,13 +62,15 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||||
cy.findByRole('menu').within(() => {
|
cy.findByRole('menu').within(() => {
|
||||||
cy.findByText('Subsection').click()
|
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')
|
clickToolbarButton('Choose section heading level')
|
||||||
cy.findByRole('menu').within(() => {
|
cy.findByRole('menu').within(() => {
|
||||||
cy.findByText('Normal text').click()
|
cy.findByText('Normal text').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', 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should toggle Bold and Italic', function () {
|
it('should toggle Bold and Italic', function () {
|
||||||
|
|
Loading…
Reference in a new issue