You are here

protected function SiteAlertWebDriverTestBase::assertSiteAlertNotVisible in Site Alert 8

Checks that the site alert with the given message is not visible.

Parameters

string $message: The message that should not be present in any of the visible alerts.

3 calls to SiteAlertWebDriverTestBase::assertSiteAlertNotVisible()
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.
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 97

Class

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

Namespace

Drupal\Tests\site_alert\FunctionalJavascript

Code

protected function assertSiteAlertNotVisible($message) {
  $selector = 'div:contains("' . $message . '")';
  $this
    ->assertElementNotPresent($selector);
}