(text: string)
| 920 | } |
| 921 | |
| 922 | function getMenuItem(text: string): HTMLElement | null { |
| 923 | const items = fixture.debugElement |
| 924 | .queryAll(By.directive(MenuItem)) |
| 925 | .map((debugEl: DebugElement) => debugEl.nativeElement as HTMLElement); |
| 926 | return items.find(item => item.textContent?.trim() === text) || null; |
| 927 | } |
| 928 | |
| 929 | function isExpanded(menuBarItemText: string): boolean { |
| 930 | return getMenuBarItem(menuBarItemText)?.getAttribute('aria-expanded') === 'true'; |
no outgoing calls
no test coverage detected
searching dependent graphs…