8 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
25 public function processAssert(
26 SalesOrderView $salesOrderView,
27 OrderIndex $salesOrder,
31 $salesOrder->getSalesOrderGrid()->searchAndOpen([
'id' =>
$order->getId()]);
32 $refundsData =
$order->getRefund();
33 $sendMail = isset($refundsData[0][
'form_data'][
'send_email'])
34 ? filter_var($refundsData[0][
'form_data'][
'send_email'], FILTER_VALIDATE_BOOLEAN)
37 $infoTab = $salesOrderView->getOrderForm()->openTab(
'info')->getTab(
'info');
38 $latestComment = $infoTab->getCommentsHistoryBlock()->getLatestComment();
40 \PHPUnit\Framework\Assert::assertContains(
41 $latestComment[
'is_customer_notified'],
42 (
bool)$sendMail ?
'Customer Notified' :
'Customer Not Notified' 53 return "Message with appropriate notification status is available in Comments History section.";