mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
82472227f9
* Replace react-html-parser with html-to-react Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
33 lines
790 B
TypeScript
33 lines
790 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
describe('emojis', () => {
|
|
|
|
const HEDGEHOG_UNICODE_CHARACTER = '\n🦔\n'
|
|
|
|
beforeEach(() => {
|
|
cy.visitTestEditor()
|
|
})
|
|
|
|
it('renders an emoji shortcode', () => {
|
|
cy.codemirrorFill(':hedgehog:')
|
|
cy.getMarkdownBody()
|
|
.should('have.text', HEDGEHOG_UNICODE_CHARACTER)
|
|
})
|
|
|
|
it('renders an emoji unicode character', () => {
|
|
cy.codemirrorFill(HEDGEHOG_UNICODE_CHARACTER)
|
|
cy.getMarkdownBody()
|
|
.should('have.text', HEDGEHOG_UNICODE_CHARACTER)
|
|
})
|
|
|
|
it('renders an fork awesome icon', () => {
|
|
cy.codemirrorFill(':fa-matrix-org:')
|
|
cy.getMarkdownBody()
|
|
.find('i.fa.fa-matrix-org')
|
|
.should('be.visible')
|
|
})
|
|
})
|