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

Function getWidgetEl

src/aria/toolbar/toolbar.spec.ts:85–88  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

83 }
84
85 function getWidgetEl(text: string): HTMLElement | null {
86 const widgets = getWidgetEls();
87 return widgets.find(widget => widget.textContent?.trim() === text) || null;
88 }
89
90 function getWidgetEls(): HTMLElement[] {
91 return fixture.debugElement

Callers 1

toolbar.spec.tsFile · 0.85

Calls 1

getWidgetElsFunction · 0.85

Tested by

no test coverage detected