You are here

protected function OffCanvasTestBase::assertAllContextualLinksLoaded 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::assertAllContextualLinksLoaded()
  2. 10 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertAllContextualLinksLoaded()

Assert all contextual link areas have be loaded.

Contextual link placeholders will be filled after the page is received.

@todo Move this function to https://www.drupal.org/node/2821724.

1 call to OffCanvasTestBase::assertAllContextualLinksLoaded()
OffCanvasTestBase::assertPageLoadComplete in core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php
Assert the page is completely loaded.

File

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

Class

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

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

protected function assertAllContextualLinksLoaded() {
  $this
    ->assertSession()
    ->assertNoElementAfterWait('css', '[data-contextual-id]:empty');
}