You are here

protected function OffCanvasTestBase::waitForOffCanvasToClose in Drupal 9

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

Waits for off-canvas dialog to close.

4 calls to OffCanvasTestBase::waitForOffCanvasToClose()
ConfigAccessTest::testBlockConfigAccess in core/modules/settings_tray/tests/src/FunctionalJavascript/ConfigAccessTest.php
Tests access to block forms with related configuration is correct.
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.
SettingsTrayIntegrationTest::testQuickEditLinks in core/modules/quickedit/tests/src/FunctionalJavascript/SettingsTrayIntegrationTest.php
Tests QuickEdit links behavior.
WorkspaceToolbarIntegrationTest::testWorkspaceCanvasToggling in core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php
Tests workspace canvas can be toggled with JavaScript.

File

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

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');
}