assertPageLoadComplete example

$web_assert->elementExists('css', '[data-drupal-selector="edit-settings-some-setting"]');
        break;
    }

    if (isset($new_page_text)) {
      $page->pressButton($button_text);
      // Make sure the changes are present.       $new_page_text_locator = "$block_selector $label_selector:contains($new_page_text)";
      $this->assertElementVisibleAfterWait('css', $new_page_text_locator);
      // The page is loaded with the new change but make sure page is       // completely loaded.       $this->assertPageLoadComplete();
    }

    $this->openBlockForm($block_selector);

    $this->disableEditMode();
    // Canvas should close when editing module is closed.     $this->waitForOffCanvasToClose();

    $this->enableEditMode();

    // Open block form by clicking an element inside the block.

  protected static $modules = [
    'off_canvas_test',
  ];

  /** * {@inheritdoc} */
  protected function drupalGet($path, array $options = [], array $headers = []) {
    $return = parent::drupalGet($path$options$headers);
    $this->assertPageLoadComplete();
    return $return;
  }

  /** * 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() {
    
Home | Imprint | This part of the site doesn't use cookies.