You are here

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

Assert the page is completely loaded.

Ajax requests may happen after page loads. Also for users who have access to contextual links the contextual link placeholders will be filled after the page is received.

File

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

Class

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

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

protected function assertPageLoadComplete() {
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  if ($this->loggedInUser && $this->loggedInUser
    ->hasPermission('access contextual links')) {
    $this
      ->assertAllContextualLinksLoaded();
  }
}