/** * New Accounts Report. * * @param Customer $customer * @param array $customersReport * @return void */ public function test(Customer $customer, array $customersReport) { // Preconditions $this->customerIndexPage->open(); $this->customerIndexPage->getCustomerGridBlock()->massaction([], 'Delete', true, 'Select All'); $customer->persist(); // Steps $this->customerAccounts->open(); $this->customerAccounts->getGridBlock()->searchAccounts($customersReport); }