You are here

protected function OffCanvasTestBase::waitForOffCanvasToClose in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::waitForOffCanvasToClose()
  2. 10 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.
QuickEditIntegrationTest::testQuickEditLinks in core/modules/settings_tray/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php
Tests QuickEdit links behavior.
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::testWorkspaceCanvasToggling in core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php
Test 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');
}