From 2c93e72b232cd9715c1e807dd62ee1f319f0885a Mon Sep 17 00:00:00 2001 From: GeraldineGomez Date: Sun, 5 Nov 2023 08:32:23 -0500 Subject: [PATCH] Test: se actualiza la cantidad de cafes de la prueba --- reports/ut_report.xml | 28 +++++++++---------- .../coffee-list/coffee-list.component.spec.ts | 8 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/reports/ut_report.xml b/reports/ut_report.xml index ca16156..285338e 100644 --- a/reports/ut_report.xml +++ b/reports/ut_report.xml @@ -1,22 +1,22 @@ - - - - - + + - - + + - - - - - - - + + + + + + + + + + diff --git a/src/app/coffee/coffee-list/coffee-list.component.spec.ts b/src/app/coffee/coffee-list/coffee-list.component.spec.ts index 5c9d06a..54f7caf 100644 --- a/src/app/coffee/coffee-list/coffee-list.component.spec.ts +++ b/src/app/coffee/coffee-list/coffee-list.component.spec.ts @@ -25,7 +25,7 @@ describe('CoffeeListComponent', () => { fixture = TestBed.createComponent(CoffeeListComponent); component = fixture.componentInstance; - for(let i = 0; i < 10; i++) { + for(let i = 0; i < 3; i++) { const coffee = new Coffee( faker.number.int(), faker.person.firstName(), @@ -55,7 +55,7 @@ describe('CoffeeListComponent', () => { }); it('should have 11 elements', () => { - expect(debug.queryAll(By.css('tr'))).toHaveSize(11) + expect(debug.queryAll(By.css('tr'))).toHaveSize(4) }); it('should have the corresponding table header elements', () => { @@ -66,7 +66,7 @@ describe('CoffeeListComponent', () => { expect(headerTable.children[3].nativeElement.textContent).toEqual("Región") }); - it('should have the corresponding id, nombre, tipo and region to the 10 coffees elements', () => { + it('should have the corresponding id, nombre, tipo and region to the 3 coffees elements', () => { let coffeTable = debug.queryAll(By.css('tr')); coffeTable.forEach((row, i) => { if(i != 0) { @@ -85,7 +85,7 @@ describe('CoffeeListComponent', () => { it('should have the corresponding total origen coffe types', () => { expect(debug.queryAll(By.css('#origen'))[0].nativeElement.textContent). - toEqual("Total café de origen: " + component.totalBlend) + toEqual("Total café de origen: " + component.totalOrigen) }); });