MCPcopy Create free account
hub / github.com/angular/components / getMenuBarItem

Function getMenuBarItem

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

Source from the content-addressed store, hash-verified

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

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected