/** * Bestseller Products Report. * * @param OrderInjectable $order * @param array $bestsellerReport * @return void */ public function test(OrderInjectable $order, array $bestsellerReport) { // Preconditions $order->persist(); $this->bestsellers->open(); $this->bestsellers->getMessagesBlock()->clickLinkInMessages('notice', 'here'); // Steps $this->bestsellers->getFilterBlock()->viewsReport($bestsellerReport); $this->bestsellers->getActionsBlock()->showReport(); }