ClaroTableDragTest.php in Drupal 10
File
core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php
View source
<?php
namespace Drupal\FunctionalJavascriptTests\Theme;
use Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest;
class ClaroTableDragTest extends TableDragTest {
protected $defaultTheme = 'claro';
protected static $indentationXpathSelector = 'child::td[1]/div[contains(concat(" ", normalize-space(@class), " "), " js-tabledrag-cell-content ")]/div[contains(concat(" ", normalize-space(@class), " "), " js-indentation ")]';
protected static $tabledragChangedXpathSelector = 'child::td[1]/div[contains(concat(" ", normalize-space(@class), " "), " js-tabledrag-cell-content ")]/abbr[contains(concat(" ", normalize-space(@class), " "), " tabledrag-changed ")]';
public function testNoDuplicates() {
$this
->drupalGet('tabledrag_test_nested');
$this
->assertCount(1, $this
->findRowById(1)
->findAll('css', '.tabledrag-handle'));
}
}