mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Add extra test suite for emojis (#1322)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
f4e5d795e6
commit
4b3990d0db
2 changed files with 33 additions and 10 deletions
33
cypress/integration/emoji.spec.ts
Normal file
33
cypress/integration/emoji.spec.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
describe('emojis', () => {
|
||||
|
||||
const HEDGEHOG_UNICODE_CHARACTER = '🦔'
|
||||
|
||||
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')
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue