(text: string)
| 939 | } |
| 940 | |
| 941 | function getMenuBarItem(text: string): HTMLElement | null { |
| 942 | const items = fixture.debugElement |
| 943 | .query(By.directive(MenuBar)) |
| 944 | .queryAll(By.directive(MenuItem)); |
| 945 | return ( |
| 946 | items.find(item => item.nativeElement.textContent?.trim() === text)?.nativeElement || null |
| 947 | ); |
| 948 | } |
| 949 | |
| 950 | function getMenuItem(text: string): HTMLElement | null { |
| 951 | const items = fixture.debugElement |
no outgoing calls
no test coverage detected