2021-02-22 16:27:59 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
describe('Diagram codeblock ', () => {
|
|
|
|
beforeEach(() => {
|
2022-01-30 15:46:43 -05:00
|
|
|
cy.visitTestNote()
|
2021-02-22 16:27:59 -05:00
|
|
|
})
|
|
|
|
|
2021-12-25 10:44:24 -05:00
|
|
|
/*
|
|
|
|
TODO: Readd test after fixing https://github.com/hedgedoc/react-client/issues/1709
|
|
|
|
it('renders markmap', () => {
|
|
|
|
cy.setCodemirrorContent('```markmap\n- pro\n- contra\n```')
|
|
|
|
cy.getMarkdownBody().findByCypressId('markmap').children().should('be.visible')
|
|
|
|
})
|
|
|
|
*/
|
2021-02-22 16:27:59 -05:00
|
|
|
|
|
|
|
it('renders mermaid', () => {
|
2021-10-04 06:50:39 -04:00
|
|
|
cy.setCodemirrorContent('```mermaid\ngraph TD;\n A-->B;\n```')
|
2021-12-25 10:44:24 -05:00
|
|
|
cy.getMarkdownBody().findByCypressId('mermaid-frame').children().should('be.visible')
|
2021-02-22 16:27:59 -05:00
|
|
|
})
|
|
|
|
})
|