mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
[TLC-380] further browse link unit test fixes (waitForAsync)
This commit is contained in:
@@ -139,21 +139,23 @@ describe('ItemPageFieldComponent', () => {
|
||||
beforeEach(() => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
waitForAsync(() => {
|
||||
it('should have a browse link', () => {
|
||||
expect(fixture.debugElement.query(By.css('a.ds-browse-link')).nativeElement.innerHTML).toContain(mockValue);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('test rendering of configured regex-based links', () => {
|
||||
beforeEach(() => {
|
||||
comp.urlRegex = '^test';
|
||||
fixture.detectChanges();
|
||||
});
|
||||
beforeEach(waitForAsync(() => {
|
||||
waitForAsync(() => {
|
||||
it('should have a rendered (non-browse) link since the value matches ^test', () => {
|
||||
expect(fixture.debugElement.query(By.css('a.ds-simple-metadata-link')).nativeElement.innerHTML).toContain(mockValue);
|
||||
});
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
describe('test skipping of configured links that do NOT match regex', () => {
|
||||
|
Reference in New Issue
Block a user