mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 10:01:59 +00: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>
19 lines
639 B
TypeScript
19 lines
639 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
describe('Link gets replaced with embedding: ', () => {
|
|
beforeEach(() => {
|
|
cy.visitTestNote()
|
|
})
|
|
|
|
// TODO Add general testing of one-click-embedding component. The tests below just test a specific use of the component.
|
|
|
|
it('GitHub Gist', () => {
|
|
cy.setCodemirrorContent('https://gist.github.com/schacon/1')
|
|
cy.getMarkdownBody().findByCypressId('click-shield-gist').find('.preview-background').parent().click()
|
|
cy.getMarkdownBody().findByCypressId('gh-gist').should('be.visible')
|
|
})
|
|
})
|