function AdminTableDragTest::testNoDuplicates

Same name and namespace in other branches
  1. main core/tests/Drupal/FunctionalJavascriptTests/Theme/AdminTableDragTest.php \Drupal\FunctionalJavascriptTests\Theme\AdminTableDragTest::testNoDuplicates()

Ensures that there are no duplicate tabledrag handles.

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/AdminTableDragTest.php, line 38

Class

AdminTableDragTest
Tests draggable tables with Admin theme.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

public function testNoDuplicates() : void {
  $this->drupalGet('tabledrag_test_nested');
  $this->assertCount(1, $this->findRowById(1)
    ->findAll('css', '.tabledrag-handle'));
}

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