Skip to content

Commit 622f43e

Browse files
committed
e2e: verify number of pdf pages for clientPrint
1 parent 6f82e66 commit 622f43e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e/specs/clientPrint.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ describe('Client print test', () => {
1414
cy.get('button:contains("PDF herunterladen (Layout #2)")').click()
1515

1616
const downloadsFolder = Cypress.config('downloadsFolder')
17-
cy.readFile(path.join(downloadsFolder, 'Pfila-2023.pdf'), {
17+
const filePath = path.join(downloadsFolder, 'Pfila-2023.pdf')
18+
cy.readFile(filePath, {
1819
timeout: 30000,
1920
})
21+
cy.getPdfProperties(filePath).its('numPages').should('eq', 18)
2022
cy.moveDownloads()
2123
})
2224
})

0 commit comments

Comments
 (0)