Skip to main content

Batch API

DrevOps\BehatSteps\Steps\Drupal\BatchTrait - Source, Example

Wait for Drupal's Batch API to finish.

  • Poll the batch progress element until the page no longer contains it.

A batch page reloads itself until the operation completes, so a following assertion would otherwise read the progress screen rather than the result.

Steps​

@When I wait for the batch job to finish

Wait for the batch job to finish

When I wait for the batch job to finish