Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
170 // Wait for the autocomplete to be visible. | 170 // Wait for the autocomplete to be visible. |
171 return $this->waitForElementVisible('css', '.ui-autocomplete li'); | 171 return $this->waitForElementVisible('css', '.ui-autocomplete li'); |
172 } | 172 } |
173 | 173 |
174 /** | 174 /** |
175 * Test that a node, or it's specific corner, is visible in the viewport. | 175 * Test that a node, or its specific corner, is visible in the viewport. |
176 * | 176 * |
177 * Note: Always set the viewport size. This can be done with a PhantomJS | 177 * Note: Always set the viewport size. This can be done with a PhantomJS |
178 * startup parameter or in your test with \Behat\Mink\Session->resizeWindow(). | 178 * startup parameter or in your test with \Behat\Mink\Session->resizeWindow(). |
179 * Drupal CI Javascript tests by default use a viewport of 1024x768px. | 179 * Drupal CI Javascript tests by default use a viewport of 1024x768px. |
180 * | 180 * |
253 throw new ElementHtmlException($message, $this->session->getDriver(), $node); | 253 throw new ElementHtmlException($message, $this->session->getDriver(), $node); |
254 } | 254 } |
255 } | 255 } |
256 | 256 |
257 /** | 257 /** |
258 * Check the visibility of a node, or it's specific corner. | 258 * Check the visibility of a node, or its specific corner. |
259 * | 259 * |
260 * @param \Behat\Mink\Element\NodeElement $node | 260 * @param \Behat\Mink\Element\NodeElement $node |
261 * A valid node. | 261 * A valid node. |
262 * @param bool|string $corner | 262 * @param bool|string $corner |
263 * (Optional) Corner to test: topLeft, topRight, bottomRight, bottomLeft. | 263 * (Optional) Corner to test: topLeft, topRight, bottomRight, bottomLeft. |