9 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
32 public function processAssert(
33 SalesOrderView $salesOrderView,
34 OrderIndex $salesOrder,
39 $salesOrder->getSalesOrderGrid()->searchAndOpen([
'id' => $orderId]);
42 $infoTab = $salesOrderView->getOrderForm()->openTab(
'info')->getTab(
'info');
43 $latestComment = $infoTab->getCommentsHistoryBlock()->getLatestComment();
45 \PHPUnit\Framework\Assert::assertContains(
46 self::VOIDED_AMOUNT .
$prices[
'grandTotal'],
47 $latestComment[
'comment'],
48 'Incorrect voided amount value for the order #' . $orderId
59 return "Message about voided amount is available in Comments History section.";