function OffCanvasTestBase::waitForOffCanvasToOpen

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToOpen()
  2. 10 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToOpen()
  3. 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

8 calls to OffCanvasTestBase::waitForOffCanvasToOpen()
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.
SettingsTrayBlockFormTest::testEditModeEnableDisable in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Tests enabling and disabling Edit Mode.
SettingsTrayIntegrationTest::testQuickEditLinks in core/modules/quickedit/tests/src/FunctionalJavascript/SettingsTrayIntegrationTest.php
Tests QuickEdit links behavior.

... See full list

File

core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php, line 81

Class

OffCanvasTestBase
Base class contains common test functionality for the Off-canvas dialog.

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

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.