mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
8879b51344
Signed-off-by: Yannick Bungers <git@innay.de>
21 lines
710 B
TypeScript
21 lines
710 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 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.
|
|
// https://github.com/hedgedoc/hedgedoc/issues/5039
|
|
|
|
it('GitHub Gist', () => {
|
|
cy.setCodemirrorContent('https://gist.github.com/schacon/1')
|
|
cy.getMarkdownBody().findByCypressId('click-shield-gist').findByCypressId('preview-background').parent().click()
|
|
cy.getMarkdownBody().findByCypressId('gh-gist').should('be.visible')
|
|
})
|
|
})
|