mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Add slide mode with reveal.js
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
29565f8f89
commit
36e445e631
70 changed files with 1225 additions and 323 deletions
|
@ -16,21 +16,21 @@ describe('Task lists ', () => {
|
|||
|
||||
describe('render with checkboxes ', () => {
|
||||
it('when unchecked', () => {
|
||||
cy.codemirrorFill(TEST_STRING_UNCHECKED)
|
||||
cy.setCodemirrorContent(TEST_STRING_UNCHECKED)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.should('have.length', 6)
|
||||
})
|
||||
|
||||
it('when checked lowercase', () => {
|
||||
cy.codemirrorFill(TEST_STRING_CHECKED_LOWER)
|
||||
cy.setCodemirrorContent(TEST_STRING_CHECKED_LOWER)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.should('have.length', 6)
|
||||
})
|
||||
|
||||
it('when checked uppercase', () => {
|
||||
cy.codemirrorFill(TEST_STRING_CHECKED_UPPER)
|
||||
cy.setCodemirrorContent(TEST_STRING_CHECKED_UPPER)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.should('have.length', 6)
|
||||
|
@ -38,7 +38,7 @@ describe('Task lists ', () => {
|
|||
})
|
||||
|
||||
it('do not render as checkboxes when invalid', () => {
|
||||
cy.codemirrorFill(TEST_STRING_INVALID)
|
||||
cy.setCodemirrorContent(TEST_STRING_INVALID)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.should('have.length', 0)
|
||||
|
@ -46,7 +46,7 @@ describe('Task lists ', () => {
|
|||
|
||||
describe('are clickable and change the markdown source ', () => {
|
||||
it('from unchecked to checked', () => {
|
||||
cy.codemirrorFill(TEST_STRING_UNCHECKED)
|
||||
cy.setCodemirrorContent(TEST_STRING_UNCHECKED)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each(box => {
|
||||
|
@ -59,7 +59,7 @@ describe('Task lists ', () => {
|
|||
})
|
||||
|
||||
it('from checked (lowercase) to unchecked', () => {
|
||||
cy.codemirrorFill(TEST_STRING_CHECKED_LOWER)
|
||||
cy.setCodemirrorContent(TEST_STRING_CHECKED_LOWER)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each(box => {
|
||||
|
@ -72,7 +72,7 @@ describe('Task lists ', () => {
|
|||
})
|
||||
|
||||
it('from checked (uppercase) to unchecked', () => {
|
||||
cy.codemirrorFill(TEST_STRING_CHECKED_UPPER)
|
||||
cy.setCodemirrorContent(TEST_STRING_CHECKED_UPPER)
|
||||
cy.getMarkdownBody()
|
||||
.find('input[type=checkbox]')
|
||||
.each(box => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue