mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Refactor to UiSettings
This commit is contained in:
		| @@ -2,8 +2,8 @@ describe('document-detail', () => { | ||||
|   beforeEach(() => { | ||||
|     this.modifiedDocuments = [] | ||||
|  | ||||
|     cy.intercept('http://localhost:8000/api/frontend_settings/', { | ||||
|       fixture: 'frontend_settings/settings.json', | ||||
|     cy.intercept('http://localhost:8000/api/ui_settings/', { | ||||
|       fixture: 'ui_settings/settings.json', | ||||
|     }) | ||||
|     cy.fixture('documents/documents.json').then((documentsJson) => { | ||||
|       cy.intercept('GET', 'http://localhost:8000/api/documents/1/', (req) => { | ||||
|   | ||||
| @@ -3,8 +3,8 @@ describe('documents-list', () => { | ||||
|     this.bulkEdits = {} | ||||
|  | ||||
|     // mock API methods | ||||
|     cy.intercept('http://localhost:8000/api/frontend_settings/', { | ||||
|       fixture: 'frontend_settings/settings.json', | ||||
|     cy.intercept('http://localhost:8000/api/ui_settings/', { | ||||
|       fixture: 'ui_settings/settings.json', | ||||
|     }) | ||||
|     cy.fixture('documents/documents.json').then((documentsJson) => { | ||||
|       // bulk edit | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| describe('manage', () => { | ||||
|   beforeEach(() => { | ||||
|     cy.intercept('http://localhost:8000/api/frontend_settings/', { | ||||
|       fixture: 'frontend_settings/settings.json', | ||||
|     cy.intercept('http://localhost:8000/api/ui_settings/', { | ||||
|       fixture: 'ui_settings/settings.json', | ||||
|     }) | ||||
|     cy.intercept('http://localhost:8000/api/correspondents/*', { | ||||
|       fixture: 'correspondents/correspondents.json', | ||||
|   | ||||
| @@ -3,8 +3,8 @@ describe('settings', () => { | ||||
|     this.modifiedViews = [] | ||||
|  | ||||
|     // mock API methods | ||||
|     cy.intercept('http://localhost:8000/api/frontend_settings/', { | ||||
|       fixture: 'frontend_settings/settings.json', | ||||
|     cy.intercept('http://localhost:8000/api/ui_settings/', { | ||||
|       fixture: 'ui_settings/settings.json', | ||||
|     }).then(() => { | ||||
|       cy.fixture('saved_views/savedviews.json').then((savedViewsJson) => { | ||||
|         // saved views PATCH | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon