+
+
+
diff --git a/src/app/shared/auth-nav-menu/auth-nav-menu.component.spec.ts b/src/app/shared/auth-nav-menu/auth-nav-menu.component.spec.ts
index 0b9ea6ef4b4..e9dbf450492 100644
--- a/src/app/shared/auth-nav-menu/auth-nav-menu.component.spec.ts
+++ b/src/app/shared/auth-nav-menu/auth-nav-menu.component.spec.ts
@@ -16,8 +16,9 @@ import { AuthTokenInfo } from '../../core/auth/models/auth-token-info.model';
import { AuthService } from '../../core/auth/auth.service';
import { of } from 'rxjs';
import { BrowserOnlyMockPipe } from '../testing/browser-only-mock.pipe';
+import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap';
-describe('AuthNavMenuComponent', () => {
+fdescribe('AuthNavMenuComponent', () => {
let component: AuthNavMenuComponent;
let deNavMenu: DebugElement;
@@ -75,6 +76,7 @@ describe('AuthNavMenuComponent', () => {
strictActionImmutability: false
}
}),
+ NgbDropdown,
TranslateModule.forRoot()
],
declarations: [
@@ -120,7 +122,7 @@ describe('AuthNavMenuComponent', () => {
const navMenuSelector = '.navbar-nav';
deNavMenu = fixture.debugElement.query(By.css(navMenuSelector));
- const navMenuItemSelector = 'li';
+ const navMenuItemSelector = '.nav-item';
deNavMenuItem = deNavMenu.query(By.css(navMenuItemSelector));
}));
afterEach(() => {
@@ -158,7 +160,7 @@ describe('AuthNavMenuComponent', () => {
const navMenuSelector = '.navbar-nav';
deNavMenu = fixture.debugElement.query(By.css(navMenuSelector));
- const navMenuItemSelector = 'li';
+ const navMenuItemSelector = '.nav-item';
deNavMenuItem = deNavMenu.query(By.css(navMenuItemSelector));
}));
@@ -200,7 +202,7 @@ describe('AuthNavMenuComponent', () => {
const navMenuSelector = '.navbar-nav';
deNavMenu = fixture.debugElement.query(By.css(navMenuSelector));
- const navMenuItemSelector = 'li';
+ const navMenuItemSelector = '.nav-item';
deNavMenuItem = deNavMenu.query(By.css(navMenuItemSelector));
}));
@@ -210,7 +212,7 @@ describe('AuthNavMenuComponent', () => {
});
it('should render login dropdown menu', () => {
- const loginDropdownMenu = deNavMenuItem.query(By.css('div.loginDropdownMenu'));
+ const loginDropdownMenu = deNavMenuItem.query(By.css('div#loginDropdownMenu'));
expect(loginDropdownMenu.nativeElement).toBeDefined();
});
});
@@ -239,7 +241,7 @@ describe('AuthNavMenuComponent', () => {
const navMenuSelector = '.navbar-nav';
deNavMenu = fixture.debugElement.query(By.css(navMenuSelector));
- const navMenuItemSelector = 'li';
+ const navMenuItemSelector = '.nav-item';
deNavMenuItem = deNavMenu.query(By.css(navMenuItemSelector));
}));
@@ -309,10 +311,10 @@ describe('AuthNavMenuComponent', () => {
fixture.detectChanges();
- const navMenuSelector = '.navbar-nav';
+ const navMenuSelector = '[data-test="auth-nav"]';
deNavMenu = fixture.debugElement.query(By.css(navMenuSelector));
- const navMenuItemSelector = 'li';
+ const navMenuItemSelector = '.nav-item';
deNavMenuItem = deNavMenu.query(By.css(navMenuItemSelector));
}));