11 use Magento\Contact\Test\Page\ContactIndex;
12 use Magento\Mtf\TestCase\Injectable;
13 use Magento\Mtf\TestStep\TestStepFactory;
40 private $assertCaptcha;
47 private $contactIndex;
65 TestStepFactory $stepFactory,
67 ContactIndex $contactIndex
69 $this->stepFactory = $stepFactory;
70 $this->assertCaptcha = $assertCaptcha;
71 $this->contactIndex = $contactIndex;
85 $this->configData = $configData;
88 $this->stepFactory->create(
89 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
90 [
'configData' => $this->configData]
93 $this->contactIndex->open();
94 $this->assertCaptcha->processAssertRegisterForm($this->contactIndex);
95 $this->contactIndex->getContactUs()->fill($comment);
96 $this->contactIndex->getContactUs()->reloadCaptcha();
97 $this->contactIndex->getContactUs()->sendComment();
107 $this->stepFactory->create(
108 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
109 [
'configData' => $this->configData,
'rollback' =>
true]