mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
adding side menu for download option (#33307)
* adding side menu for download option * fixing the E2E tests to adapt the new behaviour GitOrigin-RevId: d96df4906a40006d36ac0ea525d74a1644ec4085
This commit is contained in:
@@ -140,6 +140,7 @@ describe('editor', function () {
|
||||
describe('file menu', function () {
|
||||
it('can download project sources', function () {
|
||||
cy.findByRole('button', { name: 'File' }).click()
|
||||
cy.findByRole('link', { name: 'Download' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Download as source (.zip)' }).click()
|
||||
const zipName = projectName.replaceAll('-', '_')
|
||||
cy.task('readFileInZip', {
|
||||
@@ -156,6 +157,7 @@ describe('editor', function () {
|
||||
)
|
||||
|
||||
cy.findByRole('button', { name: 'File' }).click()
|
||||
cy.findByRole('link', { name: 'Download' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Download as PDF' }).click()
|
||||
const pdfName = projectName.replaceAll('-', '_')
|
||||
cy.task('readPdf', `cypress/downloads/${pdfName}.pdf`).should(
|
||||
|
||||
Reference in New Issue
Block a user