2020-07-16 05:22:53 -04:00
|
|
|
export const banner = {
|
|
|
|
text: 'This is the mock banner call',
|
|
|
|
timestamp: '2020-05-22T20:46:08.962Z'
|
|
|
|
}
|
|
|
|
|
2020-07-18 16:17:36 -04:00
|
|
|
export const branding = {
|
|
|
|
name: 'ACME Corp',
|
2020-07-29 16:58:01 -04:00
|
|
|
logo: 'http://localhost:3001/acme.png'
|
2020-07-18 16:17:36 -04:00
|
|
|
}
|
|
|
|
|
2020-07-16 05:22:53 -04:00
|
|
|
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
|
|
|
|
},
|
2020-07-18 16:17:36 -04:00
|
|
|
branding: branding,
|
2020-07-16 05:22:53 -04:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|