mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 19:14:16 +00:00
f0fe7f5ac2
- added e2e tests for - banner - history - intro - language - link - added e2e workflow - added cypress badge to README
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
export const banner = {
|
|
text: 'This is the mock banner call',
|
|
timestamp: '2020-05-22T20:46:08.962Z'
|
|
}
|
|
|
|
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: {
|
|
name: 'ACME Corp',
|
|
logo: 'http://localhost:3000/acme.png'
|
|
},
|
|
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'
|
|
}
|
|
}
|
|
})
|
|
})
|