Using a fake hover event, open the specified menu given a reference to its trigger.
(menuElement?: HTMLElement)
| 169 | } |
| 170 | /** Using a fake hover event, open the specified menu given a reference to its trigger. */ |
| 171 | function openMenuOnHover(menuElement?: HTMLElement) { |
| 172 | if (menuElement) { |
| 173 | dispatchMouseEvent(menuElement, 'mouseenter'); |
| 174 | detectChanges(); |
| 175 | } else { |
| 176 | throw Error('No element trigger provided. Is it visible in the DOM?'); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Fakes mouse hover events from some source point to some target point. Along the way, emits |
no test coverage detected
searching dependent graphs…