(text: string)
| 1036 | } |
| 1037 | |
| 1038 | function getMenuBarItem(text: string): HTMLElement | null { |
| 1039 | const items = fixture.debugElement |
| 1040 | .query(By.directive(MenuBar)) |
| 1041 | .queryAll(By.directive(MenuItem)); |
| 1042 | return ( |
| 1043 | items.find(item => item.nativeElement.textContent?.trim() === text)?.nativeElement || null |
| 1044 | ); |
| 1045 | } |
| 1046 | |
| 1047 | function getMenuItem(text: string): HTMLElement | null { |
| 1048 | const items = fixture.debugElement |
no outgoing calls
no test coverage detected