You are here

private function FeatureContext::spinJavaScriptEvaluation in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::spinJavaScriptEvaluation()

Spin JavaScript evaluation.

Parameters

string $assertionScript Assertion script:

integer $attemptThreshold Number of attempts to execute the command.:

3 calls to FeatureContext::spinJavaScriptEvaluation()
FeatureContext::spinUntilAjaxIsFinished in behat-tests/features/bootstrap/FeatureContext.php
Spin until the Ajax is finished.
FeatureContext::spinUntilLiftCampaignsAreSynchronized in behat-tests/features/bootstrap/FeatureContext.php
Spin until the Lift Campaigns are synchronized.
FeatureContext::spinUntilMessageBoxIsPopulated in behat-tests/features/bootstrap/FeatureContext.php
Spin until the message box is populated.

File

behat-tests/features/bootstrap/FeatureContext.php, line 811

Class

FeatureContext
Defines application features from the specific context.

Code

private function spinJavaScriptEvaluation($assertionScript, $attemptThreshold = 15) {
  $this
    ->spin(function () use ($assertionScript) {
    return $this
      ->getMink()
      ->getSession()
      ->evaluateScript('return ' . $assertionScript);
  }, $attemptThreshold);
}