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