ClaroTableDragTest.php

Same filename in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php
  2. 8.9.x core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php
  3. 11.x core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php

Namespace

Drupal\FunctionalJavascriptTests\Theme

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\FunctionalJavascriptTests\Theme;

use Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest;

/**
 * Tests draggable tables with Claro theme.
 *
 * @group claro
 *
 * @see \Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest
 */
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() : void {
        $this->drupalGet('tabledrag_test_nested');
        $this->assertCount(1, $this->findRowById(1)
            ->findAll('css', '.tabledrag-handle'));
    }

}

Classes

Title Deprecated Summary
ClaroTableDragTest Tests draggable tables with Claro theme.

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