Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
90 * @param string $css_selector | 90 * @param string $css_selector |
91 * The CSS selector identifying the element to check. | 91 * The CSS selector identifying the element to check. |
92 * @param string $message | 92 * @param string $message |
93 * Optional message to show alongside the assertion. | 93 * Optional message to show alongside the assertion. |
94 * | 94 * |
95 * @deprecated in Drupal 8.1.x, will be removed before Drupal 8.3.x. Use | 95 * @deprecated in Drupal 8.1.0, will be removed before Drupal 9.0.0. Use |
96 * \Behat\Mink\Element\NodeElement::isVisible() instead. | 96 * \Behat\Mink\Element\NodeElement::isVisible() instead. |
97 */ | 97 */ |
98 protected function assertElementVisible($css_selector, $message = '') { | 98 protected function assertElementVisible($css_selector, $message = '') { |
99 $this->assertTrue($this->getSession()->getDriver()->isVisible($this->cssSelectToXpath($css_selector)), $message); | 99 $this->assertTrue($this->getSession()->getDriver()->isVisible($this->cssSelectToXpath($css_selector)), $message); |
100 @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 8.1.0 and will be removed in 9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.', E_USER_DEPRECATED); | |
100 } | 101 } |
101 | 102 |
102 /** | 103 /** |
103 * Asserts that the element with the given CSS selector is not visible. | 104 * Asserts that the element with the given CSS selector is not visible. |
104 * | 105 * |
105 * @param string $css_selector | 106 * @param string $css_selector |
106 * The CSS selector identifying the element to check. | 107 * The CSS selector identifying the element to check. |
107 * @param string $message | 108 * @param string $message |
108 * Optional message to show alongside the assertion. | 109 * Optional message to show alongside the assertion. |
109 * | 110 * |
110 * @deprecated in Drupal 8.1.x, will be removed before Drupal 8.3.x. Use | 111 * @deprecated in Drupal 8.1.0, will be removed before Drupal 9.0.0. Use |
111 * \Behat\Mink\Element\NodeElement::isVisible() instead. | 112 * \Behat\Mink\Element\NodeElement::isVisible() instead. |
112 */ | 113 */ |
113 protected function assertElementNotVisible($css_selector, $message = '') { | 114 protected function assertElementNotVisible($css_selector, $message = '') { |
114 $this->assertFalse($this->getSession()->getDriver()->isVisible($this->cssSelectToXpath($css_selector)), $message); | 115 $this->assertFalse($this->getSession()->getDriver()->isVisible($this->cssSelectToXpath($css_selector)), $message); |
116 @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 8.1.0 and will be removed in 9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.', E_USER_DEPRECATED); | |
115 } | 117 } |
116 | 118 |
117 /** | 119 /** |
118 * Waits for the given time or until the given JS condition becomes TRUE. | 120 * Waits for the given time or until the given JS condition becomes TRUE. |
119 * | 121 * |