mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
32c6bbb8e3
This commit adds multiple unit jest tests for components and removes e2e tests. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Philip Molares <philip.molares@udo.edu> Co-authored-by: Philip Molares <philip.molares@udo.edu>
24 lines
700 B
TypeScript
24 lines
700 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
describe('Diagram codeblock ', () => {
|
|
beforeEach(() => {
|
|
cy.visitTestNote()
|
|
})
|
|
|
|
/*
|
|
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')
|
|
})
|
|
*/
|
|
|
|
it('renders mermaid', () => {
|
|
cy.setCodemirrorContent('```mermaid\ngraph TD;\n A-->B;\n```')
|
|
cy.getMarkdownBody().findByCypressId('mermaid-frame').children().should('be.visible')
|
|
})
|
|
})
|