Skip to content

Commit 1aee6eb

Browse files
committed
nuxtPrint.cy.js: do not run these download PDF for picasso in firefox
And wait for menu item to be visible before clicking it.
1 parent e58228d commit 1aee6eb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

e2e/specs/nuxtPrint.cy.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,18 @@ describe('Nuxt print test', () => {
9292
})
9393

9494
it('for picasso', () => {
95+
if (Cypress.browser.name === 'firefox') {
96+
console.log(
97+
"This test doesn't test browser specific behaviour. Firefox makes problems, thus we dont test this with firefox."
98+
)
99+
return
100+
}
101+
95102
cy.get('a:contains("Programm")').click()
96103
cy.get('[data-testid="campprogram-menu"]').click()
97-
cy.get('[role="menuitem"] :contains("PDF herunterladen (Layout #1)")').click()
104+
cy.get('[role="menuitem"] :contains("PDF herunterladen (Layout #1)")')
105+
.should('be.visible')
106+
.click()
98107

99108
const downloadsFolder = Cypress.config('downloadsFolder')
100109
const pdfPath = path.join(downloadsFolder, 'Pfila-2023-Hauptlager.pdf')

0 commit comments

Comments
 (0)