[web] Fix zip name in e2e tests (#26888)

GitOrigin-RevId: d0efd0f09af04ea5039d0f5335f8d1a776dcf3a3
This commit is contained in:
Mathias Jakobsen
2025-07-07 13:22:49 +01:00
committed by Copybot
parent 16135bde64
commit 2cacf8f645
2 changed files with 4 additions and 2 deletions

View File

@@ -147,8 +147,9 @@ describe('editor', () => {
it('can download project sources', () => {
cy.get('a').contains('Source').click()
const zipName = projectName.replaceAll('-', '_')
cy.task('readFileInZip', {
pathToZip: `cypress/downloads/${projectName}.zip`,
pathToZip: `cypress/downloads/${zipName}.zip`,
fileToRead: 'main.tex',
}).should('contain', 'Your introduction goes here')
})

View File

@@ -44,8 +44,9 @@ describe('Project List', () => {
cy.findByRole('button', { name: 'Download .zip file' }).click()
)
const zipName = projectName.replaceAll('-', '_')
cy.task('readFileInZip', {
pathToZip: `cypress/downloads/${projectName}.zip`,
pathToZip: `cypress/downloads/${zipName}.zip`,
fileToRead: 'main.tex',
}).should('contain', 'Your introduction goes here')
})