MCPcopy Index your code
hub / github.com/angular/components / getItem

Function getItem

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

Source from the content-addressed store, hash-verified

68 }
69
70 function getItem(text: string): HTMLElement | null {
71 const items = fixture.debugElement
72 .queryAll(By.directive(MenuItem))
73 .map((debugEl: DebugElement) => debugEl.nativeElement as HTMLElement);
74 return items.find(item => item.textContent?.trim() === text) || null;
75 }
76
77 describe('dynamic updates', () => {
78 it('should update item order correctly after items are shuffled', async () => {

Callers 3

setupMenuFunction · 0.70
menu.spec.tsFile · 0.70
isSubmenuExpandedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…