mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-04 21:23:40 -05:00
47f5e7653b
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
20 lines
562 B
TypeScript
20 lines
562 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
describe('Short code', () => {
|
|
beforeEach(() => {
|
|
cy.visitTestEditor()
|
|
})
|
|
|
|
describe('for pdfs', () => {
|
|
it('renders a plain link', () => {
|
|
cy.codemirrorFill(`{%pdf https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf %}`)
|
|
cy.getMarkdownBody()
|
|
.find('a')
|
|
.should('have.attr', 'href', 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf')
|
|
})
|
|
})
|
|
})
|