TSK-1121: Corrected HTML to fit old unit tests

This commit is contained in:
Chi Nguyen 2020-07-15 16:05:05 +02:00 committed by Chi Nguyen
parent d991db248c
commit 9205d87367
2 changed files with 6 additions and 9 deletions

View File

@ -13,11 +13,9 @@
<a *ngIf="hasItems" (click)="changeToPage(page?.totalPages)" aria-label="Last">Last</a>
</li>
</ul>
<div class="footer pull-right">
<span [hidden]="numberOfItems === 0">
<i [innerHTML]="getPagesTextToShow()"></i>
</span>
<span [hidden]="numberOfItems !== 0 && page.totalElements !== 0">
<i>Loading...</i>
</span>
</div>
<span class="footer pull-right" [hidden]="numberOfItems === 0">
<i [innerHTML]="getPagesTextToShow()"></i>
</span>
<span class="footer pull-right" [hidden]="numberOfItems !== 0 && page.totalElements !== 0">
<i>Loading...</i>
</span>

View File

@ -34,7 +34,6 @@ describe('PaginationComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
expect(debugElement.querySelectorAll('#wb-pagination > li').length).toBe(2);
});
it('should create 3 pages if total pages are 3', () => {