You are here

protected function SiteAlertWebDriverTestBase::assertJavaScriptPresent in Site Alert 8

Asserts that the JavaScript code to refresh the alerts is present.

2 calls to SiteAlertWebDriverTestBase::assertJavaScriptPresent()
SiteAlertCacheWorkaroundTest::testPageCacheWorkaround in tests/src/FunctionalJavascript/SiteAlertCacheWorkaroundTest.php
Tests that the workaround to display alerts on cached pages works.
SiteAlertTimeoutTest::testSiteAlertTimeouts in tests/src/FunctionalJavascript/SiteAlertTimeoutTest.php
Tests the automatic refreshing of site alerts.

File

tests/src/FunctionalJavascript/SiteAlertWebDriverTestBase.php, line 130

Class

SiteAlertWebDriverTestBase
Base class for functional JS tests for the Site Alerts module.

Namespace

Drupal\Tests\site_alert\FunctionalJavascript

Code

protected function assertJavaScriptPresent() {
  $this
    ->assertElementPresent('script[src*="site_alert.js"]');
}