Files
overleaf-cep/server-ce/test/customization.spec.ts
Tim Down 41d120d8f1 Merge pull request #29038 from overleaf/td-eslint-e2e-tests
Enable ESLint for all end-to-end tests

GitOrigin-RevId: 5d085f52fabcc794b0457edbbb551500477d4110
2025-11-19 09:05:24 +00:00

41 lines
1.1 KiB
TypeScript

import { isExcludedBySharding, startWith } from './helpers/config'
describe('Customization', function () {
if (isExcludedBySharding('CE_CUSTOM_1')) return
describe('default settings', function () {
startWith({})
it('should display the default right footer', function () {
cy.visit('/')
cy.get('footer').findByRole('link', { name: 'Fork on GitHub!' })
})
})
describe('custom settings', function () {
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', function () {
cy.visit('/')
cy.get('nav').findByText('CUSTOM APP NAME')
})
it('should display custom left footer', function () {
cy.visit('/')
cy.get('footer').findByText('CUSTOM LEFT FOOTER')
})
it('should display custom right footer', function () {
cy.visit('/')
cy.get('footer').findByText('CUSTOM RIGHT FOOTER')
})
})
})