class ClaroTableDragTest

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroTableDragTest
  2. 10 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroTableDragTest
  3. 8.9.x core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroTableDragTest

Tests draggable tables with Claro theme.

@group claro

Hierarchy

Expanded class hierarchy of ClaroTableDragTest

See also

\Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest

File

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

Namespace

Drupal\FunctionalJavascriptTests\Theme
View source
class ClaroTableDragTest extends TableDragTest {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'claro';
  
  /**
   * {@inheritdoc}
   */
  protected static $indentationXpathSelector = 'child::td[1]/div[contains(concat(" ", normalize-space(@class), " "), " js-tabledrag-cell-content ")]/div[contains(concat(" ", normalize-space(@class), " "), " js-indentation ")]';
  
  /**
   * {@inheritdoc}
   */
  protected static $tabledragChangedXpathSelector = 'child::td[1]/div[contains(concat(" ", normalize-space(@class), " "), " js-tabledrag-cell-content ")]/abbr[contains(concat(" ", normalize-space(@class), " "), " tabledrag-changed ")]';
  
  /**
   * Ensures that there are no duplicate tabledrag handles.
   */
  public function testNoDuplicates() {
    $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.