/** * Runs Delete Customer Backend Entity test * * @param Customer $customer * @return void */ public function testDeleteCustomerBackendEntity(Customer $customer) { // Preconditions: $customer->persist(); // Steps: $filter = ['email' => $customer->getEmail()]; $this->customerIndexPage->open(); $this->customerIndexPage->getCustomerGridBlock()->searchAndOpen($filter); $this->customerIndexEditPage->getPageActionsBlock()->delete(); $this->customerIndexEditPage->getModalBlock()->acceptAlert(); }