(text: string)
| 704 | } |
| 705 | |
| 706 | function getTreeItem(text: string): HTMLElement | null { |
| 707 | const items = Array.from( |
| 708 | fixture.nativeElement.querySelectorAll('[ngTreeItem]'), |
| 709 | ) as HTMLElement[]; |
| 710 | return items.find(item => item.textContent?.trim().startsWith(text)) || null; |
| 711 | } |
| 712 | |
| 713 | function getTreeItems(): HTMLElement[] { |
| 714 | return Array.from(fixture.nativeElement.querySelectorAll('[ngTreeItem]')) as HTMLElement[]; |