function OffCanvasTestBase::assertAllContextualLinksLoaded

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.