Don't show error if no intro.md was found (#1221)

This commit is contained in:
Tilman Vatteroth 2021-05-03 21:56:44 +02:00 committed by GitHub
parent fcefb32f1b
commit e1d096ba1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 19 deletions

View file

@ -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', () => {