test was failing intermittently; apparently .then() doesn't always wait ...

...for the page to be fully rendered