You are here

public function ToolbarTest::testToolbarReportPage in Devel 8.2

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

Tests the toolbar report page.

File

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

Class

ToolbarTest
Tests the JavaScript functionality of webprofiler.

Namespace

Drupal\Tests\webprofiler\FunctionalJavascript

Code

public function testToolbarReportPage() {
  $this
    ->loginForDashboard();
  $this
    ->drupalGet('<front>');
  $token = $this
    ->waitForToolbar();
  $this
    ->drupalGet('admin/reports/profiler/list');
  $assert = $this
    ->assertSession();
  $assert
    ->pageTextContains($token);
}