/** * Open customer review report * * @param CustomerInjectable $customer * @return void */ public function openReview(CustomerInjectable $customer) { $customerName = $customer->getFirstName() . ' ' . $customer->getLastName(); $this->_rootElement->find(sprintf($this->searchRow, $customerName), Locator::SELECTOR_XPATH)->click(); }
/** * Assert product reviews qty column in Review Report by Customer grid * * @param CustomerReportReview $customerReportReview * @param CustomerInjectable $customer * @param int $reviewsCount * @return void */ public function processAssert(CustomerReportReview $customerReportReview, CustomerInjectable $customer, $reviewsCount) { $customerName = $customer->getFirstName() . ' ' . $customer->getLastName(); $customerReportReview->open(); \PHPUnit_Framework_Assert::assertEquals($reviewsCount, $customerReportReview->getGridBlock()->getQtyReview($customerName), 'Wrong qty review in Customer Reviews Report grid.'); }