Replace acme.png with demo.png (#1089)

* Replace acme.png with demo.png

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2021-03-09 23:03:54 +01:00 committed by GitHub
parent 6d2dde477c
commit 029295dd3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 9 deletions

View file

@ -44,13 +44,13 @@ describe('File upload', () => {
cy.get('.fa-upload')
.click()
cy.get('div.btn-group > input[type=file]')
.attachFile({ filePath: 'acme.png', mimeType: 'image/png' })
.attachFile({ filePath: 'demo.png', mimeType: 'image/png' })
cy.get('.CodeMirror-activeline > .CodeMirror-line > span')
.should('have.text', `![](${ imageUrl })`)
})
it('via paste', () => {
cy.fixture('acme.png')
cy.fixture('demo.png')
.then((image: string) => {
const pasteEvent = {
clipboardData: {
@ -65,7 +65,7 @@ describe('File upload', () => {
})
it('via drag and drop', () => {
cy.fixture('acme.png')
cy.fixture('demo.png')
.then((image: string) => {
const dropEvent = {
dataTransfer: {
@ -92,10 +92,10 @@ describe('File upload', () => {
})
cy.get('.fa-upload')
.click()
cy.fixture('acme.png')
cy.fixture('demo.png')
.then(() => {
cy.get('input[type=file]')
.attachFile({ filePath: 'acme.png', mimeType: 'image/png' })
.attachFile({ filePath: 'demo.png', mimeType: 'image/png' })
})
cy.get('.CodeMirror-activeline > .CodeMirror-line > span > span')
.should('have.text', String.fromCharCode(8203)) //thanks codemirror....