diff --git a/server-ce/test/editor.spec.ts b/server-ce/test/editor.spec.ts index 7a34f26573..f8f7f0f53c 100644 --- a/server-ce/test/editor.spec.ts +++ b/server-ce/test/editor.spec.ts @@ -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') }) diff --git a/server-ce/test/project-list.spec.ts b/server-ce/test/project-list.spec.ts index 6b038f320c..998fcf9ffb 100644 --- a/server-ce/test/project-list.spec.ts +++ b/server-ce/test/project-list.spec.ts @@ -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') })