Commit 3eb4c3d4 authored by Maxime REYROLLE's avatar Maxime REYROLLE

it should display labels of the first service data

parent 287d4dc7
Pipeline #1306 passed with stage
in 16 minutes and 46 seconds
......@@ -42,4 +42,13 @@ describe('DashboardComponent', () => {
const services = fixture.debugElement.queryAll(By.css('.services'));
expect(services.length).toEqual(2);
});
it('should display labels of the first service data', () => {
fixture.detectChanges();
const services = fixture.debugElement.queryAll(By.css('.services'));
const serviceTextContent = services[0].nativeElement.textContent;
expect(serviceTextContent).toContain(DashboardServiceMock.SERVICE_1.data[0].label);
expect(serviceTextContent).toContain(DashboardServiceMock.SERVICE_1.data[1].label);
expect(serviceTextContent).toContain(DashboardServiceMock.SERVICE_1.data[2].label);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment