refactor such that `eventually` enables polling for a successful
assertion, rather than only polling for existence of the DOM element