In our Behat tests, we have some code for waiting for AJAX to complete. That doesn't work when we've switched to an iframe (which is necessary for the Media tests) and so we have a bunch of steps which just wait for an arbitrary number of seconds in the actual Behat feature. Still this leads to some sporadic failures on Travis, which is really annoying.

I don't know that we can fix this entirely, but I think we could improve it by at least adding a delay in the same steps as we do when not in an iframe, even if we have to just wait an arbitrary amount of time. And it'd be moving the delay out of the Behat feature and into the integration code which makes for cleaner tests.

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new867 bytes

Patch is attached!

EDIT: Here's the Travis build: https://travis-ci.org/panopoly/panopoly/builds/376106061

dsnopek’s picture

StatusFileSize
new1.1 KB

Here's a new version of this patch that increases the delay a little and will wait immediately after switching to the iframe too.

EDIT: Here's a Travis build: https://travis-ci.org/panopoly/panopoly/builds/376700759

  • dsnopek committed f28a2fa on 7.x-1.x
    Update Panopoly Test for Issue #2971200 by dsnopek, cboyden: Fix issues...

dsnopek credited cboyden.

dsnopek’s picture

Status: Needs review » Fixed

This seems to be working! Committed :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.