diff --git a/src-ui/cypress/integration/settings.spec.ts b/src-ui/cypress/integration/settings.spec.ts index bc25a5096..702314c09 100644 --- a/src-ui/cypress/integration/settings.spec.ts +++ b/src-ui/cypress/integration/settings.spec.ts @@ -72,4 +72,14 @@ describe('settings', () => { cy.visit('/dashboard') cy.get('app-saved-view-widget').contains('Inbox').should('not.exist') }) + + it('should change the pdf viewer type', () => { + cy.visit('/documents/1') + cy.get('object[data*="/api/documents/1/preview/"]').should('not.exist') + cy.visit('/settings') + cy.contains('Use PDF viewer provided by the browser').click() + cy.contains('button', 'Save').click() + cy.visit('/documents/1') + cy.get('object[data*="/api/documents/1/preview/"]') + }) })