mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-04 13:41:33 +00:00
29709d2ba4
* Added yaml-frontmatter extracting and error handling * add tests * changed document-title, so the editor can change the title to the title of the yaml metadata. closes #303 * extracted first line parsing in a core rule of markdown-it document title will now be determined like this: 1. yaml metadata title 2. opengraph title 3. first level one heading 4. 'Untitled' * added documentTitle e2e test Co-authored-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Philip Molares <philip@mauricedoepke.de> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com>
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
export const banner = {
|
|
text: 'This is the mock banner call',
|
|
timestamp: '2020-05-22T20:46:08.962Z'
|
|
}
|
|
|
|
export const branding = {
|
|
name: 'ACME Corp',
|
|
logo: 'http://localhost:3000/acme.png'
|
|
}
|
|
|
|
beforeEach(() => {
|
|
cy.server()
|
|
cy.route({
|
|
url: '/api/v2/config',
|
|
response: {
|
|
allowAnonymous: true,
|
|
authProviders: {
|
|
facebook: true,
|
|
github: true,
|
|
twitter: true,
|
|
gitlab: true,
|
|
dropbox: true,
|
|
ldap: true,
|
|
google: true,
|
|
saml: true,
|
|
oauth2: true,
|
|
email: true,
|
|
openid: true
|
|
},
|
|
branding: branding,
|
|
banner: banner,
|
|
customAuthNames: {
|
|
ldap: 'FooBar',
|
|
oauth2: 'Olaf2',
|
|
saml: 'aufSAMLn.de'
|
|
},
|
|
specialLinks: {
|
|
privacy: 'https://example.com/privacy',
|
|
termsOfUse: 'https://example.com/termsOfUse',
|
|
imprint: 'https://example.com/imprint'
|
|
},
|
|
version: {
|
|
version: 'mock',
|
|
sourceCodeUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
|
issueTrackerUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
|
|
}
|
|
}
|
|
})
|
|
})
|