fix functional test by implicitly waiting for DOM element
Merge pull request #408 from freedomofpress/399/functional-test-assertion-error

fix functional test by implicitly waiting for DOM element