function OffCanvasTestBase::waitForOffCanvasToOpen
Same name in other branches
- 9 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToOpen()
- 8.9.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToOpen()
- 11.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToOpen()
Waits for off-canvas dialog to open.
Parameters
string $position: The position of the dialog.
Throws
\Behat\Mink\Exception\ElementNotFoundException
9 calls to OffCanvasTestBase::waitForOffCanvasToOpen()
- AlertsJsonFeedTest::testAnnounceFeedEmpty in core/
modules/ announcements_feed/ tests/ src/ FunctionalJavascript/ AlertsJsonFeedTest.php - Check with an empty JSON feed.
- AlertsJsonFeedTest::testAnnounceFeedUpdatedAndRemoved in core/
modules/ announcements_feed/ tests/ src/ FunctionalJavascript/ AlertsJsonFeedTest.php - Check the status of the announcements when the feed is updated and removed.
- OffCanvasTest::assertOffCanvasDialog in core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTest.php - @internal
- OffCanvasTest::testNarrowWidth in core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTest.php - Tests the body displacement behaves differently at a narrow width.
- OffCanvasTest::testOffCanvasLinks in core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTest.php - Tests that non-contextual links will work with the off-canvas dialog.
File
-
core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTestBase.php, line 80
Class
- OffCanvasTestBase
- Base class contains common test functionality for the Off-canvas dialog.
Namespace
Drupal\Tests\system\FunctionalJavascriptCode
protected function waitForOffCanvasToOpen($position = 'side') {
$this->waitForOffCanvasArea();
// Check that the canvas is positioned on the side.
$this->assertSession()
->elementExists('css', '.ui-dialog-position-' . $position);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.