mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
added a spoiler container (#947)
changed toolbar to insert the new spoiler container changed tests accordingly References: https://github.com/markdown-it/markdown-it-container Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
9330adf564
commit
7be64bc582
9 changed files with 60 additions and 18 deletions
|
@ -63,7 +63,7 @@ describe('Autocompletion', () => {
|
|||
cy.get('.CodeMirror-code > div:nth-of-type(1) > .CodeMirror-line > span > span')
|
||||
.should('have.text', ':::success')
|
||||
cy.get('.CodeMirror-code > div:nth-of-type(3) > .CodeMirror-line > span span')
|
||||
.should('have.text', ':::')
|
||||
.should('have.text', '::: ')
|
||||
cy.get('.markdown-body > div.alert')
|
||||
.should('exist')
|
||||
})
|
||||
|
@ -78,7 +78,7 @@ describe('Autocompletion', () => {
|
|||
cy.get('.CodeMirror-code > div:nth-of-type(1) > .CodeMirror-line > span > span')
|
||||
.should('have.text', ':::success')
|
||||
cy.get('.CodeMirror-code > div:nth-of-type(3) > .CodeMirror-line > span span')
|
||||
.should('have.text', ':::')
|
||||
.should('have.text', '::: ')
|
||||
cy.get('.markdown-body > div.alert')
|
||||
.should('exist')
|
||||
})
|
||||
|
|
|
@ -322,7 +322,7 @@ describe('Toolbar', () => {
|
|||
cy.get('.fa-caret-square-o-down')
|
||||
.click()
|
||||
cy.get('.CodeMirror-code > div:nth-of-type(2) > .CodeMirror-line > span span')
|
||||
.should('have.text', '<details>')
|
||||
.should('have.text', ':::spoiler Toggle label')
|
||||
})
|
||||
|
||||
it('comment', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue