mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
test changing pdf viewer
This commit is contained in:
parent
2228678520
commit
bd66333147
1 changed files with 10 additions and 0 deletions
|
|
@ -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/"]')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue