()
| 709 | } |
| 710 | |
| 711 | function getVisibleTreeItems(): HTMLElement[] { |
| 712 | return fixture.debugElement |
| 713 | .queryAll(By.directive(TreeItem)) |
| 714 | .map((debugEl: DebugElement) => debugEl.nativeElement as HTMLElement) |
| 715 | .filter(el => { |
| 716 | if (el.parentElement?.role === 'group') { |
| 717 | return ( |
| 718 | el.parentElement.previousElementSibling?.getAttribute('aria-expanded') === 'true' |
| 719 | ); |
| 720 | } |
| 721 | return true; |
| 722 | }); |
| 723 | } |
| 724 | |
| 725 | afterEach(async () => { |
| 726 | await runAccessibilityChecks(fixture.nativeElement); |
no test coverage detected
searching dependent graphs…