mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #33317 from overleaf/mj-menu-bar-role
[web] Fix aria roles for nested menu bar dropdowns GitOrigin-RevId: 1c285c2ef8ed0c589bd6b0df6112c054c8662ca4
This commit is contained in:
committed by
Copybot
parent
823f11426b
commit
42f7bca37e
@@ -140,7 +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' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Download as source (.zip)' }).click()
|
||||
const zipName = projectName.replaceAll('-', '_')
|
||||
cy.task('readFileInZip', {
|
||||
@@ -157,7 +157,7 @@ describe('editor', function () {
|
||||
)
|
||||
|
||||
cy.findByRole('button', { name: 'File' }).click()
|
||||
cy.findByRole('link', { name: 'Download' }).click()
|
||||
cy.findByRole('menuitem', { 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