/**
  * Refunds report
  *
  * @param OrderInjectable $order
  * @param array $refundsReport
  * @return array
  */
 public function test(OrderInjectable $order, array $refundsReport)
 {
     // Preconditions
     $this->refundsReport->open();
     $this->refundsReport->getMessagesBlock()->clickLinkInMessages('notice', 'here');
     $this->refundsReport->getFilterBlock()->viewsReport($refundsReport);
     $this->refundsReport->getActionBlock()->showReport();
     $initialRefundsResult = $this->refundsReport->getGridBlock()->getLastResult();
     $order->persist();
     $invoice = $this->objectManager->create('Magento\\Sales\\Test\\TestStep\\CreateInvoiceStep', ['order' => $order]);
     $invoice->run();
     $creditMemo = $this->objectManager->create('Magento\\Sales\\Test\\TestStep\\CreateCreditMemoStep', ['order' => $order]);
     $creditMemo->run();
     return ['initialRefundsResult' => $initialRefundsResult];
 }