mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
fix failed tests
This commit is contained in:
@@ -206,7 +206,7 @@ describe('AuthNavMenuComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should render login dropdown menu', () => {
|
it('should render login dropdown menu', () => {
|
||||||
const loginDropdownMenu = deNavMenuItem.query(By.css('div[id=loginDropdownMenu]'));
|
const loginDropdownMenu = deNavMenuItem.query(By.css('div.loginDropdownMenu'));
|
||||||
expect(loginDropdownMenu.nativeElement).toBeDefined();
|
expect(loginDropdownMenu.nativeElement).toBeDefined();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -129,7 +129,7 @@ describe('Dynamic Dynamic Scrollable Dropdown component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should display dropdown menu entries', () => {
|
it('should display dropdown menu entries', () => {
|
||||||
const de = scrollableDropdownFixture.debugElement.query(By.css('input.custom-select'));
|
const de = scrollableDropdownFixture.debugElement.query(By.css('input.form-control'));
|
||||||
const btnEl = de.nativeElement;
|
const btnEl = de.nativeElement;
|
||||||
|
|
||||||
const deMenu = scrollableDropdownFixture.debugElement.query(By.css('div.scrollable-dropdown-menu'));
|
const deMenu = scrollableDropdownFixture.debugElement.query(By.css('div.scrollable-dropdown-menu'));
|
||||||
@@ -156,7 +156,7 @@ describe('Dynamic Dynamic Scrollable Dropdown component', () => {
|
|||||||
it('should select a results entry properly', fakeAsync(() => {
|
it('should select a results entry properly', fakeAsync(() => {
|
||||||
const selectedValue = Object.assign(new VocabularyEntry(), { authority: 1, display: 'one', value: 1 });
|
const selectedValue = Object.assign(new VocabularyEntry(), { authority: 1, display: 'one', value: 1 });
|
||||||
|
|
||||||
let de: any = scrollableDropdownFixture.debugElement.query(By.css('input.custom-select'));
|
let de: any = scrollableDropdownFixture.debugElement.query(By.css('input.form-control'));
|
||||||
let btnEl = de.nativeElement;
|
let btnEl = de.nativeElement;
|
||||||
|
|
||||||
btnEl.click();
|
btnEl.click();
|
||||||
|
Reference in New Issue
Block a user