Get the test elements from the component.
()
| 139 | |
| 140 | /** Get the test elements from the component. */ |
| 141 | function grabElementsForTesting() { |
| 142 | nativeFileTrigger = fixture.componentInstance.nativeFileTrigger?.nativeElement; |
| 143 | nativeFileButtons = fixture.debugElement |
| 144 | .query(By.css('#file_menu')) |
| 145 | ?.nativeElement.querySelectorAll('button'); |
| 146 | |
| 147 | nativeEditTrigger = fixture.componentInstance.nativeEditTrigger?.nativeElement; |
| 148 | nativeEditButtons = fixture.debugElement |
| 149 | .query(By.css('#edit_menu')) |
| 150 | ?.nativeElement.querySelectorAll('button'); |
| 151 | |
| 152 | nativeShareTrigger = fixture.componentInstance.nativeShareTrigger?.nativeElement; |
| 153 | |
| 154 | nativeMenus = fixture.componentInstance.menus.map(m => m.nativeElement); |
| 155 | } |
| 156 | |
| 157 | /** Run change detection and extract the set of rendered elements. */ |
| 158 | function detectChanges() { |
no outgoing calls
no test coverage detected
searching dependent graphs…