(text: string)
| 911 | } |
| 912 | |
| 913 | function getMenuBarItem(text: string): HTMLElement | null { |
| 914 | const items = fixture.debugElement |
| 915 | .query(By.directive(MenuBar)) |
| 916 | .queryAll(By.directive(MenuItem)); |
| 917 | return ( |
| 918 | items.find(item => item.nativeElement.textContent?.trim() === text)?.nativeElement || null |
| 919 | ); |
| 920 | } |
| 921 | |
| 922 | function getMenuItem(text: string): HTMLElement | null { |
| 923 | const items = fixture.debugElement |
no outgoing calls
no test coverage detected
searching dependent graphs…