$this->
assertFalse($remove_link->
isVisible(), 'Remove group should be invisible after drag.'
);
// Drag another filter to the end of the last filter group to verify the
// group is set correctly.
$drag_handle =
$langcode_row->
find('css', '.tabledrag-handle'
);
$drag_handle->
dragTo($status_extra_row);
// Both rows must be in the same group.
$this->
assertNotEquals($status_extra_original_value,
$status_extra_group_field->
getValue(), 'Status extra group should be changed'
);
$this->
assertNotEquals($langcode_original_value,
$langcode_group_field->
getValue(), 'Langcode group should be changed'
);
$this->
assertSession()->
waitForLink('Create new filter group', 20000
);
$create_new_filter_group =
$page->
findLink('Create new filter group'
);
$this->
assertTrue($create_new_filter_group->
isVisible(), 'Add group link found.'
);
$create_new_filter_group->
click();
$assert_session->
assertWaitOnAjaxRequest();
// Validate dragging works correctly and the new group will contain the new
// filter.
$dragged =
$page->
find('css', ".tabledrag-handle"
);
$target =
$page->
find('css', '.filter-group-operator-row'
);
$dragged->
dragTo($target);