2021-02-22 21:27:59 +00:00
|
|
|
/*
|
2022-06-08 11:19:51 +00:00
|
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
2021-02-22 21:27:59 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
describe('Diagram codeblock ', () => {
|
|
|
|
beforeEach(() => {
|
2022-01-30 20:46:43 +00:00
|
|
|
cy.visitTestNote()
|
2021-02-22 21:27:59 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
it('renders mermaid', () => {
|
2021-10-04 10:50:39 +00:00
|
|
|
cy.setCodemirrorContent('```mermaid\ngraph TD;\n A-->B;\n```')
|
2021-12-25 15:44:24 +00:00
|
|
|
cy.getMarkdownBody().findByCypressId('mermaid-frame').children().should('be.visible')
|
2021-02-22 21:27:59 +00:00
|
|
|
})
|
|
|
|
})
|