customization.spec.ts 695 B

12345678910111213141516171819202122232425
  1. import { startWith } from './helpers/config'
  2. describe('Customization', () => {
  3. startWith({
  4. vars: {
  5. OVERLEAF_APP_NAME: 'CUSTOM APP NAME',
  6. OVERLEAF_LEFT_FOOTER: JSON.stringify([{ text: 'CUSTOM LEFT FOOTER' }]),
  7. OVERLEAF_RIGHT_FOOTER: JSON.stringify([{ text: 'CUSTOM RIGHT FOOTER' }]),
  8. },
  9. })
  10. it('should display custom name', () => {
  11. cy.visit('/')
  12. cy.get('nav').findByText('CUSTOM APP NAME')
  13. })
  14. it('should display custom left footer', () => {
  15. cy.visit('/')
  16. cy.get('footer').findByText('CUSTOM LEFT FOOTER')
  17. })
  18. it('should display custom right footer', () => {
  19. cy.visit('/')
  20. cy.get('footer').findByText('CUSTOM RIGHT FOOTER')
  21. })
  22. })