Emergency JS tests fix

Whoops, broken by the Bootstrap3 migration PR #5617

- Wait for keyboard help dialog fadein and fadeout (introduced in Bootstrap3).

In the future, we probably want to figure out how to do this without timeouts, using the Bootstrap `bs.model.shown` event (or something similar).