mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 05:35:18 -05:00
26 lines
695 B
TypeScript
26 lines
695 B
TypeScript
|
import { startWith } from './helpers/config'
|
||
|
|
||
|
describe('Customization', () => {
|
||
|
startWith({
|
||
|
vars: {
|
||
|
OVERLEAF_APP_NAME: 'CUSTOM APP NAME',
|
||
|
OVERLEAF_LEFT_FOOTER: JSON.stringify([{ text: 'CUSTOM LEFT FOOTER' }]),
|
||
|
OVERLEAF_RIGHT_FOOTER: JSON.stringify([{ text: 'CUSTOM RIGHT FOOTER' }]),
|
||
|
},
|
||
|
})
|
||
|
|
||
|
it('should display custom name', () => {
|
||
|
cy.visit('/')
|
||
|
cy.get('nav').findByText('CUSTOM APP NAME')
|
||
|
})
|
||
|
|
||
|
it('should display custom left footer', () => {
|
||
|
cy.visit('/')
|
||
|
cy.get('footer').findByText('CUSTOM LEFT FOOTER')
|
||
|
})
|
||
|
it('should display custom right footer', () => {
|
||
|
cy.visit('/')
|
||
|
cy.get('footer').findByText('CUSTOM RIGHT FOOTER')
|
||
|
})
|
||
|
})
|