You are here

protected function SiteAlertWebDriverTestBase::assertJavaScriptNotPresent in Site Alert 8

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

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

File

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

Class

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

Namespace

Drupal\Tests\site_alert\FunctionalJavascript

Code

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