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,8 +139,10 @@ describe('ItemPageFieldComponent', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
it('should have a browse link', () => {
|
waitForAsync(() => {
|
||||||
expect(fixture.debugElement.query(By.css('a.ds-browse-link')).nativeElement.innerHTML).toContain(mockValue);
|
it('should have a browse link', () => {
|
||||||
|
expect(fixture.debugElement.query(By.css('a.ds-browse-link')).nativeElement.innerHTML).toContain(mockValue);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -149,11 +151,11 @@ describe('ItemPageFieldComponent', () => {
|
|||||||
comp.urlRegex = '^test';
|
comp.urlRegex = '^test';
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
beforeEach(waitForAsync(() => {
|
waitForAsync(() => {
|
||||||
it('should have a rendered (non-browse) link since the value matches ^test', () => {
|
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);
|
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', () => {
|
describe('test skipping of configured links that do NOT match regex', () => {
|
||||||
|
Reference in New Issue
Block a user