tests(functional): wait for element visibility to make tests less brittle


Fixes #966.

How do you like that, travis!?