You are here

protected function OffCanvasTestBase::waitForOffCanvasToClose in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToClose()
  2. 9 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToClose()

Waits for off-canvas dialog to close.

File

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

Class

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

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

protected function waitForOffCanvasToClose() {
  $this
    ->assertSession()
    ->assertNoElementAfterWait('css', '#drupal-off-canvas');
}