mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
* Replace placeholders with labels * Add 'Close dialog' label to modal close button to distinguish from footer Close button * Add and translate heading on the not found page * Update textarea to have id matching label's for attribute Simplify test for template description textarea * Label PDF zoom level dropdown button * Improve test selectors to use semantic roles and accessible names GitOrigin-RevId: d215ddca30ddf844cfffbcf0e528a601b134d772
45 lines
1.2 KiB
TypeScript
45 lines
1.2 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.findByRole('contentinfo').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.findByRole('navigation', { name: 'Primary' }).findByText(
|
|
'CUSTOM APP NAME'
|
|
)
|
|
})
|
|
|
|
it('should display custom left footer', function () {
|
|
cy.visit('/')
|
|
cy.findByRole('contentinfo').findByText('CUSTOM LEFT FOOTER')
|
|
})
|
|
it('should display custom right footer', function () {
|
|
cy.visit('/')
|
|
cy.findByRole('contentinfo').findByText('CUSTOM RIGHT FOOTER')
|
|
})
|
|
})
|
|
})
|