customization.spec.ts 767 B

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