From 6c43ea716eae925b07ba47d169962c5da3682df3 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 29 Mar 2022 09:10:42 +0200 Subject: [PATCH] fix: update test failed --- e2e/paths/06-claim/02_development.spec.js | 2 +- e2e/paths/09-invoice-out/03_manualInvoice.spec.js | 2 +- .../back/methods/sales-monitor/specs/salesFilter.spec.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/paths/06-claim/02_development.spec.js b/e2e/paths/06-claim/02_development.spec.js index 77aae1f2c..b7352dcc2 100644 --- a/e2e/paths/06-claim/02_development.spec.js +++ b/e2e/paths/06-claim/02_development.spec.js @@ -66,7 +66,7 @@ describe('Claim development', () => { .waitToGetProperty(selectors.claimDevelopment.firstClaimRedelivery, 'value'); expect(reason).toEqual('Calor'); - expect(result).toEqual('Cocido'); + expect(result).toEqual('Baboso/Cocido'); expect(responsible).toEqual('Calidad general'); expect(worker).toEqual('adminAssistantNick'); expect(redelivery).toEqual('Cliente'); diff --git a/e2e/paths/09-invoice-out/03_manualInvoice.spec.js b/e2e/paths/09-invoice-out/03_manualInvoice.spec.js index 396f84bfb..84f0cc8b3 100644 --- a/e2e/paths/09-invoice-out/03_manualInvoice.spec.js +++ b/e2e/paths/09-invoice-out/03_manualInvoice.spec.js @@ -50,7 +50,7 @@ describe('InvoiceOut manual invoice path', () => { }); it('should create an invoice from a client', async() => { - await page.autocompleteSearch(selectors.invoiceOutIndex.manualInvoiceClient, 'Charles Xavier'); + await page.autocompleteSearch(selectors.invoiceOutIndex.manualInvoiceClient, 'Max Eisenhardt'); await page.autocompleteSearch(selectors.invoiceOutIndex.manualInvoiceSerial, 'Global nacional'); await page.autocompleteSearch(selectors.invoiceOutIndex.manualInvoiceTaxArea, 'national'); await page.waitToClick(selectors.invoiceOutIndex.saveInvoice); diff --git a/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js b/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js index 1ace5f6ef..a4fb1b0af 100644 --- a/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js +++ b/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js @@ -222,8 +222,8 @@ describe('SalesMonitor salesFilter()', () => { const firstTicket = result.shift(); const secondTicket = result.shift(); - expect(firstTicket.totalProblems).toEqual(3); - expect(secondTicket.totalProblems).toEqual(2); + expect(firstTicket.totalProblems).toEqual(1); + expect(secondTicket.totalProblems).toEqual(1); await tx.rollback(); } catch (e) {