diff --git a/test/cypress/integration/route/vehicle/vehicleDms.spec.js b/test/cypress/integration/route/vehicle/vehicleDms.spec.js index 31a473c95..cdefee200 100644 --- a/test/cypress/integration/route/vehicle/vehicleDms.spec.js +++ b/test/cypress/integration/route/vehicle/vehicleDms.spec.js @@ -66,8 +66,7 @@ describe('Vehicle DMS', () => { cy.testDmsAction('create', formSelectors, data, 'Data saved'); }); - it.only('Should download DMS', () => { - cy.intercept('GET', /\/api\/dms\/\d+\/downloadFile/).as('download'); + it('Should download DMS', () => { let fileName; cy.get(selectors.firstRowId) .invoke('text') @@ -75,10 +74,10 @@ describe('Vehicle DMS', () => { label = label.trim(); fileName = `${label}.jpg`; }); + cy.intercept('GET', /\/api\/dms\/\d+\/downloadFile/).as('download'); cy.get(selectors.firstRowDownloadBtn).click(); cy.wait('@download').then((interception) => { - expect(interception.response.statusCode).to.equal(200); expect(interception.response.headers['content-disposition']).to.contain( fileName, );