mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #18993 from overleaf/jpa-test-xelatex
[server-pro] add tests for using XeLaTeX GitOrigin-RevId: 66c602c930a4dd0888e88f2f90bd587ee16a7a64
This commit is contained in:
parent
be23b7e73b
commit
8bc9ce3b52
1 changed files with 34 additions and 0 deletions
|
@ -46,8 +46,40 @@ describe('SandboxedCompiles', function () {
|
|||
cy.get('[aria-label="View logs"]').click()
|
||||
cy.findByText(/This is pdfTeX, Version .+ \(TeX Live 2022\) /)
|
||||
})
|
||||
|
||||
checkXeTeX()
|
||||
})
|
||||
|
||||
function checkXeTeX() {
|
||||
it('should be able to use XeLaTeX', () => {
|
||||
cy.visit('/project')
|
||||
createProject('XeLaTeX')
|
||||
const recompile = throttledRecompile()
|
||||
cy.log('wait for compile')
|
||||
cy.get('.pdf-viewer').should('contain.text', 'XeLaTeX')
|
||||
|
||||
cy.log('Check which compiler was used, expect pdfLaTeX')
|
||||
cy.get('[aria-label="View logs"]').click()
|
||||
cy.findByText(/This is pdfTeX/)
|
||||
|
||||
cy.log('Switch compiler to from pdfLaTeX to XeLaTeX')
|
||||
cy.get('header').findByText('Menu').click()
|
||||
cy.findByText('Compiler')
|
||||
.parent()
|
||||
.findByText('pdfLaTeX')
|
||||
.parent()
|
||||
.select('XeLaTeX')
|
||||
cy.get('#left-menu-modal').click()
|
||||
|
||||
cy.log('Trigger compile with other compiler')
|
||||
recompile()
|
||||
|
||||
cy.log('Check which compiler was used, expect XeLaTeX')
|
||||
cy.get('[aria-label="View logs"]').click()
|
||||
cy.findByText(/This is XeTeX/)
|
||||
})
|
||||
}
|
||||
|
||||
function checkUsesDefaultCompiler() {
|
||||
beforeEach(function () {
|
||||
login('user@example.com')
|
||||
|
@ -70,11 +102,13 @@ describe('SandboxedCompiles', function () {
|
|||
startWith({ pro: true })
|
||||
|
||||
checkUsesDefaultCompiler()
|
||||
checkXeTeX()
|
||||
})
|
||||
|
||||
describe.skip('unavailable in CE', () => {
|
||||
startWith({ pro: false, vars: enabledVars })
|
||||
|
||||
checkUsesDefaultCompiler()
|
||||
checkXeTeX()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue