assertPreviewAJAX example


  protected function getPreviewAJAX($view_name$panel_id$row_count) {
    $this->drupalGet('admin/structure/views/view/' . $view_name . '/edit/' . $panel_id);
    $this->getSession()->getPage()->pressButton('Update preview');
    $this->assertSession()->assertWaitOnAjaxRequest();
    $this->assertPreviewAJAX($row_count);
  }

  /** * Click on a preview link. * * @param \Behat\Mink\Element\NodeElement $element * The element to click. * @param int $row_count * The expected number of rows in the preview. */
  protected function clickPreviewLinkAJAX(NodeElement $element$row_count) {
    
Home | Imprint | This part of the site doesn't use cookies.