From 2cacf8f645353e13106bd21efda57cb7b385d7a7 Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Mon, 7 Jul 2025 13:22:49 +0100 Subject: [PATCH] [web] Fix zip name in e2e tests (#26888) GitOrigin-RevId: d0efd0f09af04ea5039d0f5335f8d1a776dcf3a3 --- server-ce/test/editor.spec.ts | 3 ++- server-ce/test/project-list.spec.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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') })