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