8 use Magento\Mtf\TestStep\TestStepInterface;
9 use Magento\Shipping\Test\Page\Adminhtml\SalesShipmentView;
10 use Magento\Shipping\Test\Page\Adminhtml\ShipmentIndex;
20 private $shipmentIndex;
25 private $salesShipmentView;
35 private $trackingData;
44 ShipmentIndex $shipmentIndex,
45 SalesShipmentView $salesShipmentView,
49 $this->shipmentIndex = $shipmentIndex;
50 $this->salesShipmentView = $salesShipmentView;
51 $this->shipmentIds = $shipmentIds;
52 $this->trackingData = $trackingData;
62 $this->shipmentIndex->open();
63 $this->shipmentIndex->getShipmentsGrid()
64 ->searchAndOpen([
'id' => array_pop($this->shipmentIds)]);
66 $trackingInfoTable = $this->salesShipmentView->getTrackingInfoBlock();
67 $trackingInfoTable->addTrackingNumber($this->trackingData);
__construct(ShipmentIndex $shipmentIndex, SalesShipmentView $salesShipmentView, array $shipmentIds, array $trackingData)