mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 13:34:28 -04:00
feat(motd): use iframe renderer for motd
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
579919f142
commit
ba96f07374
8 changed files with 47 additions and 120 deletions
|
@ -7,12 +7,16 @@
|
|||
import { RendererType } from '../../src/components/render-page/window-post-message-communicator/rendering-message'
|
||||
|
||||
declare namespace Cypress {
|
||||
interface Chainable {
|
||||
interface Chainable<Subject = unknown> {
|
||||
getIframeBody(rendererType?: RendererType): Chainable<Element>
|
||||
|
||||
getReveal(): Chainable<Element>
|
||||
|
||||
getMarkdownBody(): Chainable<Element>
|
||||
|
||||
getIntroBody(): Chainable<Element>
|
||||
|
||||
getMotdBody(): Chainable<Element>
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,3 +43,7 @@ Cypress.Commands.add('getMarkdownBody', () => {
|
|||
Cypress.Commands.add('getIntroBody', () => {
|
||||
return cy.getIframeBody(RendererType.INTRO).findByCypressId('markdown-body')
|
||||
})
|
||||
|
||||
Cypress.Commands.add('getMotdBody', () => {
|
||||
return cy.getIframeBody(RendererType.MOTD).findByCypressId('markdown-body')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue