From 397872ee19ffca8f4d4a90d2f8b94abdd00639f3 Mon Sep 17 00:00:00 2001 From: jgallego Date: Wed, 8 Apr 2020 13:15:07 +0200 Subject: [PATCH] mejoradas las descripciones de los test --- e2e/paths/05-ticket/09_weekly.spec.js | 2 +- modules/ticket/front/weekly/index.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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');