Skip to content

Commit

Permalink
test: add simple asciidoc mimetype test
Browse files Browse the repository at this point in the history
Signed-off-by: Bjørn Forsman <[email protected]>
  • Loading branch information
bjornfor committed Dec 8, 2022
1 parent 5f8ebc3 commit 7ddfe07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/files.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ describe('Text and server mimetypes', () => {
cy.getContent().find('pre').should('exist')
})

it('handle asciidoc as plaintext for now', () => {
cy.uploadFile('test.adoc', 'text/asciidoc', 'hello.adoc')
cy.visit('/apps/files')
cy.get('#app-content-files table tr').should('contain', 'hello.adoc')
cy.openFile('hello.adoc')
cy.getContent().find('pre').should('contain', 'Hello world')
})

it('handle markdown with richtext editor', () => {
cy.uploadFile('test.md', 'text/markdown', 'markdown.md')
cy.visit('/apps/files')
Expand Down
1 change: 1 addition & 0 deletions cypress/fixtures/test.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= Hello world

0 comments on commit 7ddfe07

Please sign in to comment.