mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix fixture organization
[ci skip]
This commit is contained in:
		
							
								
								
									
										3
									
								
								src-ui/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								src-ui/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -45,4 +45,7 @@ testem.log | |||||||
| # System Files | # System Files | ||||||
| .DS_Store | .DS_Store | ||||||
| Thumbs.db | Thumbs.db | ||||||
|  |  | ||||||
|  | # Cypress | ||||||
| cypress/videos/**/* | cypress/videos/**/* | ||||||
|  | cypress/screenshots/**/* | ||||||
|   | |||||||
| @@ -1 +0,0 @@ | |||||||
| {"count":4,"next":"http://localhost:8000/api/correspondents/?page=2","previous":null,"results":[{"id":1,"slug":"abc-test-correspondent","name":"ABC Test Correspondent","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":13,"slug":"corresp-10","name":"Corresp 10","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":14,"slug":"corresp-11","name":"Corresp 11","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":15,"slug":"corresp-12","name":"Corresp 12","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null}]} |  | ||||||
| @@ -1 +0,0 @@ | |||||||
| {"count":8,"next":null,"previous":null,"results":[{"id":4,"slug":"another-sample-tag","name":"Another Sample Tag","color":"#a6cee3","text_color":"#000000","match":"","matching_algorithm":6,"is_insensitive":true,"is_inbox_tag":false,"document_count":3},{"id":7,"slug":"newone","name":"NewOne","color":"#9e4ad1","text_color":"#ffffff","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":2},{"id":6,"slug":"partial-tag","name":"Partial Tag","color":"#72dba7","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":1},{"id":2,"slug":"tag-2","name":"Tag 2","color":"#612db7","text_color":"#ffffff","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":3},{"id":3,"slug":"tag-3","name":"Tag 3","color":"#b2df8a","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":4},{"id":5,"slug":"tagwithpartial","name":"TagWithPartial","color":"#3b2db4","text_color":"#ffffff","match":"","matching_algorithm":6,"is_insensitive":true,"is_inbox_tag":false,"document_count":2},{"id":8,"slug":"test-another","name":"Test Another","color":"#3ccea5","text_color":"#000000","match":"","matching_algorithm":4,"is_insensitive":true,"is_inbox_tag":false,"document_count":0},{"id":1,"slug":"test-tag","name":"Test Tag","color":"#fb9a99","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":4}]} |  | ||||||
| @@ -58,15 +58,15 @@ describe('documents-list', () => { | |||||||
|     }) |     }) | ||||||
|  |  | ||||||
|     cy.intercept('http://localhost:8000/api/tags/*', { |     cy.intercept('http://localhost:8000/api/tags/*', { | ||||||
|       fixture: 'documents/tags.json', |       fixture: 'tags/tags.json', | ||||||
|     }) |     }) | ||||||
|  |  | ||||||
|     cy.intercept('http://localhost:8000/api/correspondents/*', { |     cy.intercept('http://localhost:8000/api/correspondents/*', { | ||||||
|       fixture: 'documents/correspondents.json', |       fixture: 'correspondents/correspondents.json', | ||||||
|     }) |     }) | ||||||
|  |  | ||||||
|     cy.intercept('http://localhost:8000/api/document_types/*', { |     cy.intercept('http://localhost:8000/api/document_types/*', { | ||||||
|       fixture: 'documents/doctypes.json', |       fixture: 'document_types/doctypes.json', | ||||||
|     }) |     }) | ||||||
|  |  | ||||||
|     cy.visit('/documents') |     cy.visit('/documents') | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| describe('documents-list', () => { | describe('documents-list', () => { | ||||||
|   beforeEach(() => { |   beforeEach(() => { | ||||||
|     cy.intercept('http://localhost:8000/api/correspondents/*', { |     cy.intercept('http://localhost:8000/api/correspondents/*', { | ||||||
|       fixture: 'manage/correspondents.json', |       fixture: 'correspondents/correspondents.json', | ||||||
|     }) |     }) | ||||||
|     cy.intercept('http://localhost:8000/api/tags/*', { |     cy.intercept('http://localhost:8000/api/tags/*', { | ||||||
|       fixture: 'manage/tags.json', |       fixture: 'tags/tags.json', | ||||||
|     }) |     }) | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ describe('settings', () => { | |||||||
|     this.modifiedViews = [] |     this.modifiedViews = [] | ||||||
|  |  | ||||||
|     // mock API methods |     // mock API methods | ||||||
|     cy.fixture('settings/savedviews.json').then((savedViewsJson) => { |     cy.fixture('saved_views/savedviews.json').then((savedViewsJson) => { | ||||||
|       // saved views PATCH |       // saved views PATCH | ||||||
|       cy.intercept( |       cy.intercept( | ||||||
|         'PATCH', |         'PATCH', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon