You are here

protected function WebprofilerTestBase::waitForToolbar in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::waitForToolbar()
  2. 8 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::waitForToolbar()
  3. 8.2 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::waitForToolbar()

Wait until the toolbar is present on page.

2 calls to WebprofilerTestBase::waitForToolbar()
ToolbarTest::testToolbarNotAppearsOnExcludedPath in webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php
Tests the toolbar not appears on excluded path.
ToolbarTest::testToolbarOnFrontPage in webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php
Tests if the toolbar appears on front page.

File

webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php, line 22

Class

WebprofilerTestBase
Class WebprofilerTestBase.

Namespace

Drupal\Tests\webprofiler\FunctionalJavascript

Code

protected function waitForToolbar() {
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->waitForText(\Drupal::VERSION);
}