You are here

public function ClaroTableDragTest::testNoDuplicates in Drupal 10

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

Ensures that there are no duplicate tabledrag handles.

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php, line 34

Class

ClaroTableDragTest
Tests draggable tables with Claro theme.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

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