fix #11518: update Insight UI context menu tests

Insight's UI changed and the context menu tests had to change accordingly. This required extension of functionality so that the relevant keywords could work down into submenus.

This PR should make `./build.py -f components/tests/ui/build.xml ui-test-insight -DTEST=menus` pass.

In general, the tests seem to pass far more reliably locally than on Hudson.