diff --git a/e2e/paths/05-ticket/09_weekly.spec.js b/e2e/paths/05-ticket/09_weekly.spec.js index 7da50498c..33a98d72e 100644 --- a/e2e/paths/05-ticket/09_weekly.spec.js +++ b/e2e/paths/05-ticket/09_weekly.spec.js @@ -107,7 +107,7 @@ describe('Ticket descriptor path', () => { expect(nResults).toEqual(5); }); - it('should check update/delete the agency of weekly ticket 1', async() => { + it('should update the agency then remove it afterwards', async() => { await page.autocompleteSearch(selectors.ticketsIndex.firstWeeklyTicketAgency, 'Silla247'); let result = await page.waitForLastSnackbar(); diff --git a/modules/ticket/front/weekly/index.spec.js b/modules/ticket/front/weekly/index.spec.js index 14b6e1565..a66e5c637 100644 --- a/modules/ticket/front/weekly/index.spec.js +++ b/modules/ticket/front/weekly/index.spec.js @@ -16,7 +16,7 @@ describe('ticket weekly', () => { })); describe('onUpdate()', () => { - it('should make a query and vnApp.showSuccess()', () => { + it('should make a query a PATCH querye then call vnApp.showSuccess()', () => { jest.spyOn(controller.vnApp, 'showSuccess'); $httpBackend.expectPATCH(`TicketWeeklies`).respond(); @@ -28,7 +28,7 @@ describe('ticket weekly', () => { }); describe('onDeleteWeeklyAccept()', () => { - it('should make a query and showSuccess()', () => { + it('should make a DELETE query then call showSuccess(), afterwards checks that remove returns value 0', () => { controller.$.model = crudModel; controller.$.model.data = [{ticketFk: 'ticketFk'}]; jest.spyOn(controller.vnApp, 'showSuccess');