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

Function getMenuBarItem

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

Source from the content-addressed store, hash-verified

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

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected