mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Don't show error if no intro.md was found (#1221)
This commit is contained in:
parent
fcefb32f1b
commit
e1d096ba1d
3 changed files with 25 additions and 19 deletions
|
@ -11,11 +11,20 @@ describe('Intro page', () => {
|
|||
cy.visit('/')
|
||||
})
|
||||
|
||||
describe('content', () => {
|
||||
describe('customizable content', () => {
|
||||
it('fetches and shows the correct intro page content', () => {
|
||||
cy.getMarkdownBody()
|
||||
.contains('test content')
|
||||
})
|
||||
|
||||
it('won\'t show anything if no content was found', () => {
|
||||
cy.intercept('/mock-backend/public/intro.md', {
|
||||
statusCode: 404
|
||||
})
|
||||
|
||||
cy.get(`iframe[data-cy="documentIframe"]`)
|
||||
.should('not.exist')
|
||||
})
|
||||
})
|
||||
|
||||
describe('features button', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue