You are here

protected function SiteAlertWebDriverTestBase::assertSiteAlertVisible in Site Alert 8

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

Parameters

string $message: The message that should be present in a visible alert.

1 call to SiteAlertWebDriverTestBase::assertSiteAlertVisible()
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 86

Class

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

Namespace

Drupal\Tests\site_alert\FunctionalJavascript

Code

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