You are here

public function ToolbarTest::testToolbarOnFrontPage in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarOnFrontPage()
  2. 8.2 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarOnFrontPage()
  3. 4.x webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarOnFrontPage()

Tests if the toolbar appears on front page.

File

webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php, line 29

Class

ToolbarTest
Tests the JavaScript functionality of webprofiler.

Namespace

Drupal\Tests\webprofiler\FunctionalJavascript

Code

public function testToolbarOnFrontPage() {
  $this
    ->loginForToolbar();
  $this
    ->drupalGet('<front>');
  $this
    ->waitForToolbar();
  $assert = $this
    ->assertSession();
  $assert
    ->responseContains('Configure Webprofiler');
  $assert
    ->responseContains('View latest reports');
  $assert
    ->responseContains('Drupal Documentation');
  $assert
    ->responseContains('Get involved!');
}