You are here

protected function SortableTestTrait::doLegacyDrag in Entity Embed 8

1 call to SortableTestTrait::doLegacyDrag()
SortableTestTrait::sortableTo in tests/src/FunctionalJavascript/SortableTestTrait.php
Simulates a drag on an element from one container to another.

File

tests/src/FunctionalJavascript/SortableTestTrait.php, line 121

Class

SortableTestTrait
Extends \Drupal\FunctionalJavascriptTests\SortableTestTrait.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

protected function doLegacyDrag($item, $target) {
  $assert_session = $this
    ->assertSession();
  $target = $assert_session
    ->elementExists('css', $target);
  $assert_session
    ->elementExists('css', $item)
    ->dragTo($target);
}