You are here

protected function CheckoutTest::waitForStripe in Commerce Stripe 8

Helper method to wait for Stripe actions on the client.

1 call to CheckoutTest::waitForStripe()
CheckoutTest::complete3ds in tests/src/FunctionalJavascript/CheckoutTest.php
Completes 3DS authentication using Stripe's modal.

File

tests/src/FunctionalJavascript/CheckoutTest.php, line 600

Class

CheckoutTest
Tests checkout with Stripe.

Namespace

Drupal\Tests\commerce_stripe\FunctionalJavascript

Code

protected function waitForStripe() {

  // @todo better assertion to wait for the form to submit.
  sleep(6);
}