assertAllContextualLinksLoaded example

/** * 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. */
  protected function assertPageLoadComplete() {
    $this->assertSession()->assertWaitOnAjaxRequest();
    if ($this->loggedInUser && $this->loggedInUser->hasPermission('access contextual links')) {
      $this->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. */
  
Home | Imprint | This part of the site doesn't use cookies.