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