public function ToolbarTest::testToolbarOnFrontPage in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarOnFrontPage()
- 8.2 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarOnFrontPage()
- 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\FunctionalJavascriptCode
public function testToolbarOnFrontPage() {
$this
->loginForToolbar();
$this
->drupalGet('<front>');
$this
->waitForToolbar();
$assert = $this
->assertSession();
$assert
->pageTextContains(\Drupal::VERSION);
$assert
->pageTextContains('Configure Webprofiler');
$assert
->pageTextContains('View latest reports');
$assert
->pageTextContains('Drupal Documentation');
$assert
->pageTextContains('Get involved!');
}