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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

BIN
cypress/fixtures/demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

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....

View file

@ -16,8 +16,8 @@ export const banner = {
}
export const branding = {
name: 'ACME Corp',
logo: '/img/acme.png'
name: 'DEMO Corp',
logo: '/img/demo.png'
}
export const authProviders = {

View file

@ -15,8 +15,8 @@
},
"allowRegister": true,
"branding": {
"name": "ACME Corp",
"logo": "/img/acme.png"
"name": "DEMO Corp",
"logo": "/img/demo.png"
},
"banner": {
"text": "This is the test banner text",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

BIN
public/img/demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: CC0-1.0