10 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupIndex;
11 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupNew;
12 use Magento\Mtf\TestCase\Injectable;
72 public function test(CustomerGroup $customerGroup, Customer
$customer =
null)
77 $customerGroup =
$customer->getDataFieldConfig(
'group_id')[
'source']->getCustomerGroup();
79 $customerGroup->persist();
83 $filter = [
'code' => $customerGroup->getCustomerGroupCode()];
84 $this->customerGroupIndex->open();
85 $this->customerGroupIndex->getCustomerGroupGrid()->searchAndOpen($filter);
86 $this->customerGroupNew->getPageMainActions()->delete();
87 $this->customerGroupNew->getModalBlock()->acceptAlert();
91 'customerGroup' => $customerGroup
__inject(CustomerGroupIndex $customerGroupIndex, CustomerGroupNew $customerGroupNew)
test(CustomerGroup $customerGroup, Customer $customer=null)