11 use Magento\Customer\Test\Page\CustomerAccountLogin;
12 use Magento\Mtf\Fixture\FixtureFactory;
13 use Magento\Mtf\TestCase\Injectable;
14 use Magento\Mtf\TestStep\TestStepFactory;
43 private $assertCaptcha;
50 private $customerAccountLogin;
57 private $fixtureFactory;
76 TestStepFactory $stepFactory,
78 CustomerAccountLogin $customerAccountLogin,
79 FixtureFactory $fixtureFactory
81 $this->stepFactory = $stepFactory;
82 $this->assertCaptcha = $assertCaptcha;
83 $this->customerAccountLogin = $customerAccountLogin;
84 $this->fixtureFactory = $fixtureFactory;
100 $this->configData = $configData;
103 $this->stepFactory->create(
104 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
105 [
'configData' => $this->configData]
111 'customerGroup' =>
$customer->getDataFieldConfig(
'group_id')[
'source']->getCustomerGroup()
117 $this->customerAccountLogin->open();
118 $this->assertCaptcha->processAssert($this->customerAccountLogin);
119 $this->customerAccountLogin->getLoginBlockWithCaptcha()->reloadCaptcha();
120 $this->customerAccountLogin->getLoginBlockWithCaptcha()->login(
$customer);
130 $this->stepFactory->create(
131 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
132 [
'configData' => $this->configData,
'rollback' =>
true]
__inject(TestStepFactory $stepFactory, AssertCaptchaFieldOnStorefront $assertCaptcha, CustomerAccountLogin $customerAccountLogin, FixtureFactory $fixtureFactory)
test(Customer $customer, $configData, $captcha)