mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	test changing pdf viewer
This commit is contained in:
		
							parent
							
								
									2228678520
								
							
						
					
					
						commit
						bd66333147
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user