You are here

protected function PreviewTest::clickPreviewLinkAJAX in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php \Drupal\Tests\views_ui\FunctionalJavascript\PreviewTest::clickPreviewLinkAJAX()

Click on a preview link.

Parameters

\Behat\Mink\Element\NodeElement $element: The element to click.

int $row_count: The expected number of rows in the preview.

1 call to PreviewTest::clickPreviewLinkAJAX()
PreviewTest::testPreviewWithPagersUI in core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php
Tests pagers in the preview form.

File

core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php, line 274

Class

PreviewTest
Tests the UI preview functionality.

Namespace

Drupal\Tests\views_ui\FunctionalJavascript

Code

protected function clickPreviewLinkAJAX(NodeElement $element, $row_count) {
  $element
    ->click();
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  $this
    ->assertPreviewAJAX($row_count);
}