mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Prevent navigation by link from collection-list component
This commit is contained in:
@@ -60,7 +60,7 @@ describe('DsoInputSuggestionsComponent', () => {
|
||||
const clickedIndex = 0;
|
||||
beforeEach(() => {
|
||||
spyOn(comp, 'onClickSuggestion');
|
||||
const clickedLink = de.query(By.css('.dropdown-list > div:nth-child(' + (clickedIndex + 1) + ') a'));
|
||||
const clickedLink = de.query(By.css('.dropdown-list > div:nth-child(' + (clickedIndex + 1) + ') button'));
|
||||
clickedLink.triggerEventHandler('click', {});
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
Reference in New Issue
Block a user