12 use Magento\Sitemap\Test\Fixture\Sitemap;
13 use Magento\Sitemap\Test\Page\Adminhtml\SitemapIndex;
14 use Magento\Sitemap\Test\Page\Adminhtml\SitemapNew;
15 use Magento\Mtf\TestStep\TestStepFactory;
16 use Magento\Mtf\TestCase\Injectable;
84 TestStepFactory $stepFactory
88 $this->stepFactory = $stepFactory;
108 $this->configData = $configData;
111 if ($this->configData !==
null) {
112 $this->stepFactory->create(
113 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
114 [
'configData' => $this->configData]
123 $this->sitemapIndex->open();
124 $this->sitemapIndex->getGridPageActions()->addNew();
125 $this->sitemapNew->getSitemapForm()->fill($sitemap);
126 $this->sitemapNew->getSitemapPageActions()->saveAndGenerate();
136 if ($this->configData !==
null) {
137 $this->stepFactory->create(
138 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
139 [
'configData' => $this->configData,
'rollback' =>
true]
__inject(SitemapIndex $sitemapIndex, SitemapNew $sitemapNew, TestStepFactory $stepFactory)
testGenerateSitemap(Sitemap $sitemap, CatalogProductSimple $product, Category $catalog, CmsPage $cmsPage, $configData=null)