9 use Magento\Customer\Test\Page\CustomerAccountIndex;
11 use Magento\Sales\Test\Page\CustomerOrderView;
12 use Magento\Sales\Test\Page\OrderHistory;
13 use Magento\Mtf\Constraint\AbstractConstraint;
14 use Magento\Mtf\ObjectManager;
39 CustomerAccountIndex $customerAccountIndex,
40 OrderHistory $orderHistory,
41 CustomerOrderView $customerOrderView,
44 $orderId =
$order->hasData(
'id') ?
$order->getId() : $orderId;
47 \
Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep::class,
48 [
'customer' =>
$order->getDataFieldConfig(
'customer_id')[
'source']->getCustomer()]
50 $customerAccountIndex->getAccountMenuBlock()->openMenuItem(
'My Orders');
51 $orderHistory->getOrderHistoryBlock()->openOrderById($orderId);
52 \PHPUnit\Framework\Assert::assertFalse(
53 $customerOrderView->getOrderViewBlock()->isTopPagerDisplayed(),
54 'Order items top pager is expected to be hidden for order '. $orderId
56 \PHPUnit\Framework\Assert::assertFalse(
57 $customerOrderView->getOrderViewBlock()->isBottomPagerDisplayed(),
58 'Order items bottom pager is expected to be hidden for order '. $orderId
69 return 'Order items pager is present on frontend.';