MCPcopy Create free account
hub / github.com/angular/angular / panelByText

Function panelByText

packages/core/test/acceptance/animation_spec.ts:2741–2743  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2739
2740 const panels = () => Array.from(fixture.nativeElement.querySelectorAll('.panel'));
2741 const panelByText = (text: string) =>
2742 panels().find((el) => (el as HTMLElement).textContent?.includes(text)) as
2743 HTMLElement | undefined;
2744
2745 expect(panels().length).toBe(1);
2746 expect(panelByText('Panel A')).toBeTruthy();

Callers 1

animation_spec.tsFile · 0.85

Calls 2

panelsFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected