/**
  * Mass assign customer group
  *
  * @param Customer $customer
  * @param CustomerGroupInjectable $customerGroup
  * @return void
  */
 public function test(Customer $customer, CustomerGroupInjectable $customerGroup)
 {
     // Steps
     $customerGroup->persist();
     $this->customerIndex->open();
     $this->customerIndex->getCustomerGridBlock()->massaction([['email' => $customer->getEmail()]], [$this->customersGridActions => $customerGroup->getCustomerGroupCode()]);
 }
 /**
  * Delete Customer Group
  *
  * @param CustomerGroupInjectable $customerGroup
  * @return void
  */
 public function test(CustomerGroupInjectable $customerGroup)
 {
     // Precondition
     $customerGroup->persist();
     // Steps
     $filter = ['code' => $customerGroup->getCustomerGroupCode()];
     $this->customerGroupIndex->open();
     $this->customerGroupIndex->getCustomerGroupGrid()->searchAndOpen($filter);
     $this->customerGroupNew->getPageMainActions()->delete();
 }
 /**
  * Update Customer Group
  *
  * @param CustomerGroupInjectable $customerGroupOriginal
  * @param CustomerGroupInjectable $customerGroup
  * @return void
  */
 public function test(CustomerGroupInjectable $customerGroupOriginal, CustomerGroupInjectable $customerGroup)
 {
     // Precondition
     $customerGroupOriginal->persist();
     $filter = ['code' => $customerGroupOriginal->getCustomerGroupCode()];
     // Steps
     $this->customerGroupIndex->open();
     $this->customerGroupIndex->getCustomerGroupGrid()->searchAndOpen($filter);
     $this->customerGroupNew->getPageMainForm()->fill($customerGroup);
     $this->customerGroupNew->getPageMainActions()->save();
 }