Bug 858399 - context menu should work in panels

- tests added
- `wait` utility function added in `test/event/helpers`