Bug 858399 - context menu should work in panels

- tests added
- `wait` utility function added in `test/event/helpers`
Merge pull request #1544 from ZER0/test-panel-contextmenu/858399

fix Bug 858399 - context menu should work in panels r=@erikvold