11 use Magento\Customer\Test\Page\CustomerAccountCreate;
12 use Magento\Mtf\TestCase\Injectable;
13 use Magento\Mtf\TestStep\TestStepFactory;
40 private $assertCaptcha;
47 private $customerAccountCreate;
65 TestStepFactory $stepFactory,
67 CustomerAccountCreate $customerAccount
69 $this->stepFactory = $stepFactory;
70 $this->assertCaptcha = $assertCaptcha;
71 $this->customerAccountCreate = $customerAccount;
85 $this->configData = $configData;
88 $this->stepFactory->create(
89 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
90 [
'configData' => $this->configData]
93 $this->customerAccountCreate->open();
94 $this->assertCaptcha->processAssertRegisterForm($this->customerAccountCreate);
95 $this->customerAccountCreate->getRegisterForm()->reloadCaptcha();
96 $this->customerAccountCreate->getRegisterForm()->registerCustomer(
$customer);
106 $this->stepFactory->create(
107 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
108 [
'configData' => $this->configData,
'rollback' =>
true]
__inject(TestStepFactory $stepFactory, AssertCaptchaFieldOnRegisterForm $assertCaptcha, CustomerAccountCreate $customerAccount)
test(Customer $customer, $configData)