function OffCanvasTestBase::assertElementVisibleAfterWait
Same name in other branches
- 9 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertElementVisibleAfterWait()
- 8.9.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertElementVisibleAfterWait()
- 11.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertElementVisibleAfterWait()
Asserts the specified selector is visible after a wait.
Parameters
string $selector: The selector engine name. See ElementInterface::findAll() for the supported selectors.
string|array $locator: The selector locator.
int $timeout: (Optional) Timeout in milliseconds, defaults to 10000.
2 calls to OffCanvasTestBase::assertElementVisibleAfterWait()
- SettingsTrayBlockFormTest::doTestBlocks in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ SettingsTrayBlockFormTest.php - Tests opening off-canvas dialog by click blocks and elements in the blocks.
- WorkspaceToolbarIntegrationTest::testWorkspaceSwitch in core/
modules/ workspaces/ tests/ src/ FunctionalJavascript/ WorkspaceToolbarIntegrationTest.php - Tests workspace switch and landing page behavior.
File
-
core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTestBase.php, line 125
Class
- OffCanvasTestBase
- Base class contains common test functionality for the Off-canvas dialog.
Namespace
Drupal\Tests\system\FunctionalJavascriptCode
protected function assertElementVisibleAfterWait($selector, $locator, $timeout = 10000) {
$this->assertSession()
->assertWaitOnAjaxRequest();
$this->assertNotEmpty($this->assertSession()
->waitForElementVisible($selector, $locator, $timeout));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.