10 use Magento\Shipping\Test\Page\Adminhtml\ShipmentIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
28 $shipmentIndex->open();
29 $orderId =
$order->getId();
30 $totalQty =
$order->getTotalQtyOrdered();
31 foreach ($ids[
'shipmentIds'] as $key => $shipmentIds) {
34 'order_id' => $orderId
37 'total_qty_from' => $totalQty[$key],
38 'total_qty_to' => $totalQty[$key],
40 $shipmentIndex->getShipmentsGrid()->search($filter + $filterQty);
41 \PHPUnit\Framework\Assert::assertFalse(
42 $shipmentIndex->getShipmentsGrid()->isRowVisible($filter,
false),
43 'Shipment is present in shipment grid on shipment index page.' 55 return 'Shipment is absent in the shipment grid on shipment index page.';
processAssert(ShipmentIndex $shipmentIndex, OrderInjectable $order, array $ids)