MCPcopy
hub / github.com/angular/components / getMenuBarItem

Function getMenuBarItem

src/aria/menu/menu.spec.ts:913–920  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

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

Callers 3

setupMenuFunction · 0.85
isExpandedFunction · 0.85
menu.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…