function ViewEditTest::testEditForm

Tests the edit form HTML.

File

core/modules/views_ui/tests/src/Functional/ViewEditTest.php, line 278

Class

ViewEditTest
Tests some general functionality of editing views, like deleting a view.

Namespace

Drupal\Tests\views_ui\Functional

Code

public function testEditForm() : void {
  $this->drupalGet('admin/structure/views/view/test_view');
  // Assert that the third column is a DIV.
  $this->assertSession()
    ->elementExists('xpath', '//div[contains(@class, "views-display-column first")]');
  $this->assertSession()
    ->elementExists('xpath', '//div[contains(@class, "views-display-column second")]');
  $this->assertSession()
    ->elementExists('xpath', '//div[contains(@class, "views-display-column third")]');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.