test changing pdf viewer

This commit is contained in:
Michael Shamoon 2022-03-29 20:20:46 -07:00
parent 2228678520
commit bd66333147

View File

@ -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/"]')
})
})