Prevent navigation by link from collection-list component

This commit is contained in:
Yana De Pauw
2019-08-30 15:41:50 +02:00
parent 228a61e7ed
commit 343a1498ac
3 changed files with 16 additions and 3 deletions

View File

@@ -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();
});