protected function PanelsIPETestTrait::waitUntilNotPresent in Panels 8.3
Same name and namespace in other branches
- 8.4 panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestTrait.php \Drupal\Tests\panels_ipe\FunctionalJavascript\PanelsIPETestTrait::waitUntilNotPresent()
Waits and asserts that a given element is not present.
Parameters
string $selector: The CSS selector.
int $timeout: (Optional) Timeout in milliseconds, defaults to 10000.
string $message: (Optional) Message to pass to assertJsCondition().
3 calls to PanelsIPETestTrait::waitUntilNotPresent()
- PanelsIPETestTrait::addBlock in panels_ipe/
tests/ src/ FunctionalJavascript/ PanelsIPETestTrait.php - Adds a Block (Plugin) to the page.
- PanelsIPETestTrait::changeLayout in panels_ipe/
tests/ src/ FunctionalJavascript/ PanelsIPETestTrait.php - Changes the IPE layout.
- PanelsIPETestTrait::openBlockConfigurationForm in panels_ipe/
tests/ src/ FunctionalJavascript/ PanelsIPETestTrait.php - Opens the Block configuration form for a given on-screen block.
File
- panels_ipe/
tests/ src/ FunctionalJavascript/ PanelsIPETestTrait.php, line 260
Class
- PanelsIPETestTrait
- Trait which can be used to test Panels IPE components.
Namespace
Drupal\Tests\panels_ipe\FunctionalJavascriptCode
protected function waitUntilNotPresent($selector, $timeout = 10000, $message = '') {
$condition = "jQuery('" . $selector . "').length === 0";
$this
->assertJsCondition($condition, $timeout, $message);
}