diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php index 41e5b79..9f0f016 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php @@ -41,6 +41,9 @@ protected function initMink() { * The CSS selector identifying the element to check. * @param string $message * Optional message to show alongside the assertion. + * + * @deprecated in Drupal 8.1.x, will be removed before Drupal 8.3.x. Use + * \Behat\Mink\Element\NodeElement::isVisible() instead. */ protected function assertElementVisible($css_selector, $message = '') { $this->assertTrue($this->getSession()->getDriver()->isVisible(CssSelector::toXPath($css_selector)), $message); @@ -53,6 +56,9 @@ protected function assertElementVisible($css_selector, $message = '') { * The CSS selector identifying the element to check. * @param string $message * Optional message to show alongside the assertion. + * + * @deprecated in Drupal 8.1.x, will be removed before Drupal 8.3.x. Use + * \Behat\Mink\Element\NodeElement::isVisible() instead. */ protected function assertElementNotVisible($css_selector, $message = '') { $this->assertFalse($this->getSession()->getDriver()->isVisible(CssSelector::toXPath($css_selector)), $message);