98855: Themed FileDownloadLinkComponent

This commit is contained in:
Alexandre Vryghem
2023-02-01 14:52:52 +01:00
parent ca864379c8
commit 4fb914b51c
7 changed files with 53 additions and 12 deletions

View File

@@ -109,7 +109,7 @@ describe('FileSectionComponent', () => {
it('one bitstream should be on the page', () => {
const viewMore = fixture.debugElement.query(By.css('.bitstream-view-more'));
viewMore.triggerEventHandler('click', null);
const fileDownloadLink = fixture.debugElement.queryAll(By.css('ds-file-download-link'));
const fileDownloadLink = fixture.debugElement.queryAll(By.css('ds-themed-file-download-link'));
expect(fileDownloadLink.length).toEqual(1);
});
@@ -122,7 +122,7 @@ describe('FileSectionComponent', () => {
});
it('should contain another bitstream', () => {
const fileDownloadLink = fixture.debugElement.queryAll(By.css('ds-file-download-link'));
const fileDownloadLink = fixture.debugElement.queryAll(By.css('ds-themed-file-download-link'));
expect(fileDownloadLink.length).toEqual(2);
});
});