You are here

protected function EmbedButtonTest::wait in D7 Media 8

Wait for AJAX.

1 call to EmbedButtonTest::wait()
EmbedButtonTest::testMediaEmbedDialog in tests/src/FunctionalJavascript/EmbedButtonTest.php
Tests that the entity embed dialog is working.

File

tests/src/FunctionalJavascript/EmbedButtonTest.php, line 90

Class

EmbedButtonTest
Ensures that embedding functionality works perfectly.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

protected function wait() {
  $this
    ->getSession()
    ->wait(20000, '(0 === jQuery.active)');
}