Upgrade Cypress (#28858)

GitOrigin-RevId: a5bb02d4f13e5d1aa4426debd4861205d51597f3
This commit is contained in:
Alf Eaton
2026-04-21 13:46:01 +01:00
committed by Copybot
parent f07aaf1979
commit f45eec25f4
9 changed files with 318 additions and 217 deletions

View File

@@ -13,12 +13,12 @@
"@isomorphic-git/lightning-fs": "^4.6.0",
"@overleaf/promise-utils": "*",
"@overleaf/validation-tools": "*",
"@testing-library/cypress": "10.0.3",
"@testing-library/cypress": "10.1.0",
"@types/adm-zip": "^0.5.7",
"@types/uuid": "^9.0.8",
"adm-zip": "^0.5.12",
"body-parser": "1.20.4",
"cypress": "13.13.2",
"cypress": "15.12.0",
"cypress-multi-reporters": "^2.0.5",
"express": "4.22.1",
"isomorphic-git": "^1.33.1",

View File

@@ -88,11 +88,13 @@ describe('SandboxedCompiles', function () {
cy.log('Start compile')
// We need to start the compile manually because we do not want to wait for it to finish
cy.findByRole('button', { name: 'Recompile' }).click()
// Wait for the compile to start
cy.findByRole('button', { name: 'Compiling…' }).should('exist')
// Now stop the compile and kill the latex process
stopCompile({ delay: 1000 })
cy.findByRole('region', { name: 'PDF preview' })
.invoke('text')
.should('match', /PDF Rendering Error|Compilation cancelled/)
.should('match', /No PDF|PDF Rendering Error|Compilation cancelled/)
// Check that the previous compile is not running in the background by
// disabling the infinite loop and recompiling
cy.findByText('\\def').parent().click()