mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 02:36:31 -05:00
762a0a850e
Doing this BEFORE the merge prevents a lot of merge conflicts. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
16 lines
417 B
TypeScript
16 lines
417 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
describe('Diagram codeblock ', () => {
|
|
beforeEach(() => {
|
|
cy.visitTestNote()
|
|
})
|
|
|
|
it('renders mermaid', () => {
|
|
cy.setCodemirrorContent('```mermaid\ngraph TD;\n A-->B;\n```')
|
|
cy.getMarkdownBody().findByCypressId('mermaid-frame').children().should('be.visible')
|
|
})
|
|
})
|