mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[web] Fix zip name in e2e tests (#26888)
GitOrigin-RevId: d0efd0f09af04ea5039d0f5335f8d1a776dcf3a3
This commit is contained in:
committed by
Copybot
parent
16135bde64
commit
2cacf8f645
@@ -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')
|
||||
})
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user