Skip to content

Commit c211030

Browse files
committed
Increment index for all tests of p elements
1 parent 59d36d7 commit c211030

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/app/component/task-description/task-description.component.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('TaskDescriptionComponent', () => {
5555
fixture.detectChanges();
5656
const HTMLElement: HTMLElement = fixture.nativeElement;
5757
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
58-
expect(contentDisplayedinParagraphTag[0].textContent).toContain(
58+
expect(contentDisplayedinParagraphTag[1].textContent).toContain(
5959
testDescription
6060
);
6161
});
@@ -66,7 +66,7 @@ describe('TaskDescriptionComponent', () => {
6666
fixture.detectChanges();
6767
const HTMLElement: HTMLElement = fixture.nativeElement;
6868
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
69-
expect(contentDisplayedinParagraphTag[1].textContent).toContain(testRisk);
69+
expect(contentDisplayedinParagraphTag[2].textContent).toContain(testRisk);
7070
});
7171

7272
it('check if measure is being genenrated', () => {
@@ -75,7 +75,7 @@ describe('TaskDescriptionComponent', () => {
7575
fixture.detectChanges();
7676
const HTMLElement: HTMLElement = fixture.nativeElement;
7777
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
78-
expect(contentDisplayedinParagraphTag[2].textContent).toContain(
78+
expect(contentDisplayedinParagraphTag[3].textContent).toContain(
7979
testMeasure
8080
);
8181
});
@@ -86,7 +86,7 @@ describe('TaskDescriptionComponent', () => {
8686
fixture.detectChanges();
8787
const HTMLElement: HTMLElement = fixture.nativeElement;
8888
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
89-
expect(contentDisplayedinParagraphTag[3].textContent).toContain(
89+
expect(contentDisplayedinParagraphTag[4].textContent).toContain(
9090
testImplementationGuide
9191
);
9292
});
@@ -97,7 +97,7 @@ describe('TaskDescriptionComponent', () => {
9797
fixture.detectChanges();
9898
const HTMLElement: HTMLElement = fixture.nativeElement;
9999
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
100-
expect(contentDisplayedinParagraphTag[6].textContent).toContain(
100+
expect(contentDisplayedinParagraphTag[7].textContent).toContain(
101101
testEvidence
102102
);
103103
});
@@ -108,7 +108,7 @@ describe('TaskDescriptionComponent', () => {
108108
fixture.detectChanges();
109109
const HTMLElement: HTMLElement = fixture.nativeElement;
110110
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
111-
expect(contentDisplayedinParagraphTag[7].textContent).toContain(
111+
expect(contentDisplayedinParagraphTag[8].textContent).toContain(
112112
testAssessment
113113
);
114114
});
@@ -119,7 +119,7 @@ describe('TaskDescriptionComponent', () => {
119119
fixture.detectChanges();
120120
const HTMLElement: HTMLElement = fixture.nativeElement;
121121
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
122-
expect(contentDisplayedinParagraphTag[10].textContent).toContain(
122+
expect(contentDisplayedinParagraphTag[11].textContent).toContain(
123123
testComments
124124
);
125125
});
@@ -134,7 +134,7 @@ describe('TaskDescriptionComponent', () => {
134134
fixture.detectChanges();
135135
const HTMLElement: HTMLElement = fixture.nativeElement;
136136
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
137-
expect(contentDisplayedinParagraphTag[9].textContent).toContain(
137+
expect(contentDisplayedinParagraphTag[10].textContent).toContain(
138138
component.SAMMVersion +
139139
testSAMM[0] +
140140
component.ISOVersion +

0 commit comments

Comments
 (0)