mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Fix test after removing error reporting
This commit is contained in:
		| @@ -80,7 +80,7 @@ describe('Settings endpoints', () => { | |||||||
| 	it('Should be able to get all settings with filters A', function() { | 	it('Should be able to get all settings with filters A', function() { | ||||||
| 		cy.task('backendApiGet', { | 		cy.task('backendApiGet', { | ||||||
| 			token: token, | 			token: token, | ||||||
| 			path:  '/api/settings?sort=name&name:starts=e&limit=1' | 			path:  '/api/settings?id:in=1,2,3,4,5&limit=1' | ||||||
| 		}).then((data) => { | 		}).then((data) => { | ||||||
| 			cy.validateSwaggerSchema('get', 200, '/settings', data); | 			cy.validateSwaggerSchema('get', 200, '/settings', data); | ||||||
| 			expect(data).to.have.property('result'); | 			expect(data).to.have.property('result'); | ||||||
| @@ -90,18 +90,6 @@ describe('Settings endpoints', () => { | |||||||
| 	}); | 	}); | ||||||
|  |  | ||||||
| 	it('Should be able to get all settings with filters B', function() { | 	it('Should be able to get all settings with filters B', function() { | ||||||
| 		cy.task('backendApiGet', { |  | ||||||
| 			token: token, |  | ||||||
| 			path:  '/api/settings?id:in=1,2,3,4,5&limit=1' |  | ||||||
| 		}).then((data) => { |  | ||||||
| 			cy.validateSwaggerSchema('get', 200, '/settings', data); |  | ||||||
| 			expect(data).to.have.property('result'); |  | ||||||
| 			expect(data.result).to.have.property('items'); |  | ||||||
| 			expect(data.result.items.length).to.be.greaterThan(0); |  | ||||||
| 		}); |  | ||||||
| 	}); |  | ||||||
|  |  | ||||||
| 	it('Should be able to get all settings with filters C', function() { |  | ||||||
| 		cy.task('backendApiGet', { | 		cy.task('backendApiGet', { | ||||||
| 			token: token, | 			token: token, | ||||||
| 			path:  '/api/settings?name:starts=xxxxxxxxxxxxxxx' | 			path:  '/api/settings?name:starts=xxxxxxxxxxxxxxx' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user