function BlockDragTest::getDragRow

Helper function to find block tr element on the page.

1 call to BlockDragTest::getDragRow()
BlockDragTest::testDragAndDropBlocks in core/modules/block/tests/src/FunctionalJavascript/BlockDragTest.php
Tests drag and drop blocks.

File

core/modules/block/tests/src/FunctionalJavascript/BlockDragTest.php, line 91

Class

BlockDragTest
Tests drag and drop blocks on block layout page.

Namespace

Drupal\Tests\block\FunctionalJavascript

Code

private function getDragRow($page, $blockId) {
  return $page->find('css', '#blocks tbody tr[data-drupal-selector="' . $blockId . '"] a.tabledrag-handle');
}

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