function 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);
}